summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-07 15:47:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:44:20 +0300
commit54b5a4d666eae9692ff06746c2ae68d9e1b49641 (patch)
tree8b335555a1cdc63a5e543cba51b29b466b6d45dd /src/map
parentac4a461a4054eb814ff3df089d9caa96a4343a3d (diff)
downloadhercules-54b5a4d666eae9692ff06746c2ae68d9e1b49641.tar.gz
hercules-54b5a4d666eae9692ff06746c2ae68d9e1b49641.tar.bz2
hercules-54b5a4d666eae9692ff06746c2ae68d9e1b49641.tar.xz
hercules-54b5a4d666eae9692ff06746c2ae68d9e1b49641.zip
Fix incorrect memory access in script command getareausers.
Diffstat (limited to 'src/map')
-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 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);