From ca740549e208cdce8026f4cfaec7050499bb19d1 Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Fri, 15 Jul 2022 20:07:40 -0700 Subject: [PATCH] Fix va_arg in getareausers (#7108) --- src/map/script.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/map/script.cpp b/src/map/script.cpp index 8dae614d42..65f3a175a2 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -11712,7 +11712,7 @@ BUILDIN_FUNC(getmapusers) *------------------------------------------*/ static int buildin_getareausers_sub(struct block_list *bl,va_list ap) { - int *users=va_arg(ap,int *); + int *users = va_arg(ap, int *); (*users)++; return SCRIPT_CMD_SUCCESS; } @@ -11720,7 +11720,8 @@ static int buildin_getareausers_sub(struct block_list *bl,va_list ap) BUILDIN_FUNC(getareausers) { const char *str; - int16 m,x0,y0,x1,y1,users=0; //doubt we can have more then 32k users on + int16 m,x0,y0,x1,y1; + int users = 0; str=script_getstr(st,2); x0=script_getnum(st,3); y0=script_getnum(st,4);