Fix va_arg in getareausers (#7108)

This commit is contained in:
Vincent Stumpf 2022-07-15 20:07:40 -07:00 committed by GitHub
parent b2feb2e9b0
commit ca740549e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);