summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 09a7b0089..db2ab5a86 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7525,13 +7525,14 @@ BUILDIN_FUNC(killmonsterall)
if( (m=map_mapname2mapid(mapname))<0 )
return 0;
- if( script_hasdata(st,3) )
+ if( script_hasdata(st,3) ) {
if ( script_getnum(st,3) == 1 ) {
- map_foreachinmap(buildin_killmonsterall_sub_strip,m,BL_MOB);
+ map_foreachinmap(buildin_killmonsterall_sub,m,BL_MOB);
return 0;
}
+ }
- map_foreachinmap(buildin_killmonsterall_sub,
+ map_foreachinmap(buildin_killmonsterall_sub_strip,
m,BL_MOB);
return 0;
}