summaryrefslogtreecommitdiff
path: root/src/map
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
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')
-rw-r--r--src/map/script.c1
-rw-r--r--src/map/skill.c2
2 files changed, 2 insertions, 1 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;
diff --git a/src/map/skill.c b/src/map/skill.c
index d3cb8d0be..3004bf0e9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9280,7 +9280,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
improv_skill_lv = 4 + skill_lv;
clif->skill_nodamage (src, bl, skill_id, skill_lv, 1);
- if (sd == NULL) {
+ if (sd != NULL) {
sd->state.abra_flag = 2;
sd->skillitem = improv_skill_id;
sd->skillitemlv = improv_skill_lv;