summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-07 03:27:38 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-07 03:27:38 +0000
commit66ab6386589152a7a509a828a399e83698746911 (patch)
tree4b84df1581a98df71487deb192a743bf35998970 /src
parent5348c2bddbd3d5b5eef31bd55887f335622c6595 (diff)
downloadhercules-66ab6386589152a7a509a828a399e83698746911.tar.gz
hercules-66ab6386589152a7a509a828a399e83698746911.tar.bz2
hercules-66ab6386589152a7a509a828a399e83698746911.tar.xz
hercules-66ab6386589152a7a509a828a399e83698746911.zip
Fixed 'soundeffectall' not reading its params correctly, since r10844 (bugreport:1627).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12766 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 423cb4983..a6340a2f5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10403,13 +10403,13 @@ BUILDIN_FUNC(soundeffectall)
map_foreachinmap(soundeffect_sub, map_mapname2mapid(map), BL_PC, name, type);
}
else
- if(script_hasdata(st,9))
+ if(script_hasdata(st,8))
{ // specified part of map
- const char* map = script_getstr(st,5);
- int x0 = script_getnum(st,6);
- int y0 = script_getnum(st,7);
- int x1 = script_getnum(st,8);
- int y1 = script_getnum(st,9);
+ const char* map = script_getstr(st,4);
+ int x0 = script_getnum(st,5);
+ int y0 = script_getnum(st,6);
+ int x1 = script_getnum(st,7);
+ int y1 = script_getnum(st,8);
map_foreachinarea(soundeffect_sub, map_mapname2mapid(map), x0, y0, x1, y1, BL_PC, name, type);
}
else