summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-29 00:17:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-29 01:48:09 +0300
commit35ea27078d1cd7a04deb9c2b1fc4c928466699f3 (patch)
treecbe7489f41479c997541dcb30a4a8ba1c7990abf /src/map/script.c
parent27b7d38e40938681b02c27ea75c127394a278e6e (diff)
downloadhercules-35ea27078d1cd7a04deb9c2b1fc4c928466699f3.tar.gz
hercules-35ea27078d1cd7a04deb9c2b1fc4c928466699f3.tar.bz2
hercules-35ea27078d1cd7a04deb9c2b1fc4c928466699f3.tar.xz
hercules-35ea27078d1cd7a04deb9c2b1fc4c928466699f3.zip
Fix issues found by new warnings.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index e869ddb62..181ff350f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10085,6 +10085,7 @@ int buildin_killmonsterall_sub_strip(struct block_list *bl,va_list ap)
struct mob_data *md;
md = BL_CAST(BL_MOB, bl);
+ nullpo_ret(md);
if (md->npc_event[0])
md->npc_event[0] = 0;