From e3a7c98a25aa9d0c0331619687514c02eba09f26 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 27 Aug 2016 01:41:37 +0000 Subject: [PATCH] Fix a gcc 6.x warning git-svn-id: https://svn.eduke32.com/eduke32@5831 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) 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]