summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-21 17:32:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-21 17:32:32 +0300
commit5931a58658c9c5a486dacaf4d1515d4f736da19f (patch)
treeb57893a5ef9f244f0824742a7e3e528f5d1de7f9 /src
parent875a09d8a893fd17c43d85e9a318ff0d4d359e6f (diff)
downloadplugin-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.gz
plugin-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.bz2
plugin-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.xz
plugin-5931a58658c9c5a486dacaf4d1515d4f736da19f.zip
Add missing hook stop command in emob_deleteslave_sub.
Diffstat (limited to 'src')
-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;
}