summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-31 15:14:01 +0100
committerHaru <haru@dotalux.com>2014-10-31 15:17:15 +0100
commite9333d72a25187bf618922c1b0c1cc756d0a681b (patch)
tree8119e99b31ee72bf0eb8baf0488ebcde747af74b /src/map/status.c
parentc451d3274787ee8d47938493e9e50801ae3e9540 (diff)
downloadhercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.gz
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.bz2
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.xz
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.zip
Fixed some errors pointed out by clang's static analyzer
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 6c1be1029..36c9097e1 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -11346,7 +11346,7 @@ int status_change_timer_sub(struct block_list* bl, va_list ap) {
if (sce && skill->attack(BF_MAGIC,src,src,bl,WZ_SIGHTBLASTER,sce->val1,tick,0x4000)
&& (!su || !su->group || !(skill->get_inf2(su->group->skill_id)&INF2_TRAP))) { // The hit is not counted if it's against a trap
sce->val2 = 0; // This signals it to end.
- } else if((bl->type&BL_SKILL) && sce->val4%2 == 0) {
+ } else if ((bl->type&BL_SKILL) && sce && sce->val4%2 == 0) {
//Remove trap immunity temporarily so it triggers if you still stand on it
sce->val4++;
}