summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-05-21 15:59:59 +0200
committerHaru <haru@dotalux.com>2014-05-21 15:59:59 +0200
commitcd1be22f3a10c2da4817ebf10cd1425f443c6a10 (patch)
tree071e2e1b14ad674e06e8f0191af055b3aa4c999b /src/map/status.c
parentbd86d05a59e9680ff8c645854a546617a9caaf2e (diff)
downloadhercules-cd1be22f3a10c2da4817ebf10cd1425f443c6a10.tar.gz
hercules-cd1be22f3a10c2da4817ebf10cd1425f443c6a10.tar.bz2
hercules-cd1be22f3a10c2da4817ebf10cd1425f443c6a10.tar.xz
hercules-cd1be22f3a10c2da4817ebf10cd1425f443c6a10.zip
Corrected a nullpo report in 4c8d773d72ae134f7cc4d43861104ecd9f4ae134
Special thanks to ossi0110 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 e76cd86a3..a1a7e1969 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6944,7 +6944,7 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t
return 0;
break;
case SC_CLOAKING:
- if( !skill->can_cloak(sd, bl) )
+ if (sd && !skill->can_cloak(sd))
return 0;
break;
case SC_MODECHANGE: