summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c3
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);
}