From 54b5a4d666eae9692ff06746c2ae68d9e1b49641 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Dec 2014 15:47:16 +0300 Subject: Fix incorrect memory access in script command getareausers. --- 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 84179a64e..e59159586 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10094,7 +10094,8 @@ int buildin_getareausers_sub(struct block_list *bl,va_list ap) BUILDIN(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); -- cgit v1.2.3-60-g2f50