From 6dbf04a6fe825f2a12bd9aafbe635ba049c5c232 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 25 Aug 2008 02:35:15 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@1027 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamevars.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/gamevars.c b/polymer/eduke32/source/gamevars.c index d8199c87a..2f28c7e3b 100644 --- a/polymer/eduke32/source/gamevars.c +++ b/polymer/eduke32/source/gamevars.c @@ -423,7 +423,8 @@ int AddGameArray(const char *pszLabel, int asize) initprintf("%s:%d: error: array name `%s' exceeds limit of %d characters.\n",compilefile,line_number,pszLabel, MAXARRAYLABEL); return 0; } - if (HASH_find(&arrayH,pszLabel)>=0 && !aGameArrays[i].bReset) + i = HASH_find(&arrayH,pszLabel); + if (i >=0 && !aGameArrays[i].bReset) { // found it it's a duplicate in error warning++;