summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index bd0f7f1..6d6148b 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -18,10 +18,16 @@
int emob_deleteslave_sub(struct block_list *bl, va_list ap)
{
if (!bl)
+ {
+ hookStop();
return 0;
+ }
struct mob_data *md = (struct mob_data *)bl;
if (!md)
+ {
+ hookStop();
return 0;
+ }
const int id = va_arg(ap, int);
if (md->master_id > 0 && md->master_id == id)
@@ -37,5 +43,6 @@ int emob_deleteslave_sub(struct block_list *bl, va_list ap)
}
}
+ hookStop();
return 0;
}