diff options
author | Emistry <Equinox1991@gmail.com> | 2015-09-06 06:53:29 +0800 |
---|---|---|
committer | Emistry <Equinox1991@gmail.com> | 2015-09-06 06:53:29 +0800 |
commit | 0258c91709a56acf1b9e2827882bf424fc0da755 (patch) | |
tree | 1fd0d9ee8d5ba5eb5be6edbcbbc8981c1f0b8d2a /src/map | |
parent | 5fa5d5bae9c1b9fd70a23e072853bb2f5ca733e5 (diff) | |
download | hercules-0258c91709a56acf1b9e2827882bf424fc0da755.tar.gz hercules-0258c91709a56acf1b9e2827882bf424fc0da755.tar.bz2 hercules-0258c91709a56acf1b9e2827882bf424fc0da755.tar.xz hercules-0258c91709a56acf1b9e2827882bf424fc0da755.zip |
Fixed compilation error.
error: ‘for’ loop initial declarations are only allowed in C99 mode
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |