From 0258c91709a56acf1b9e2827882bf424fc0da755 Mon Sep 17 00:00:00 2001 From: Emistry Date: Sun, 6 Sep 2015 06:53:29 +0800 Subject: Fixed compilation error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ‘for’ loop initial declarations are only allowed in C99 mode --- src/map/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/script.c b/src/map/script.c index e134730da..3e6fb2c47 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11431,6 +11431,7 @@ BUILDIN(getwaitingroomstate) { struct npc_data *nd; struct chat_data *cd; int type; + int i; type = script_getnum(st,2); if( script_hasdata(st,3) ) @@ -11445,7 +11446,7 @@ BUILDIN(getwaitingroomstate) { switch(type) { case 0: - for (int i = 0; i < cd->users; i++) { + for (i = 0; i < cd->users; i++) { struct map_session_data *sd = cd->usersd[i]; mapreg->setreg(reference_uid(script->add_str("$@chatmembers"), i), sd->bl.id); } -- cgit v1.2.3-70-g09d2