diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 82bf39788..6e1e88b77 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -4839,19 +4839,32 @@ DO_DEFSTATE: // AddLog(g_szBuf); } g_numCases=0; + if (tempscrptr) { - intptr_t t,n; - for (i=3; i<3+tempscrptr[1]*2-2; i+=2) // sort them + for (i = 3; i < 3 + tempscrptr[1] * 2 - 2; i += 2) // sort them { - t=tempscrptr[i]; n=i; - for (j=i+2; j<3+tempscrptr[1]*2; j+=2) - if (tempscrptr[j]