diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-21 17:32:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-21 17:32:32 +0300 |
commit | 5931a58658c9c5a486dacaf4d1515d4f736da19f (patch) | |
tree | b57893a5ef9f244f0824742a7e3e528f5d1de7f9 /src | |
parent | 875a09d8a893fd17c43d85e9a318ff0d4d359e6f (diff) | |
download | evol-hercules-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.gz evol-hercules-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.bz2 evol-hercules-5931a58658c9c5a486dacaf4d1515d4f736da19f.tar.xz evol-hercules-5931a58658c9c5a486dacaf4d1515d4f736da19f.zip |
Add missing hook stop command in emob_deleteslave_sub.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 7 |
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; } |