summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-19 12:23:25 -0300
committerpanikon <panikon@zoho.com>2014-05-19 12:23:25 -0300
commitdfc1165e002487ba5fcb8945676381f1709ec469 (patch)
treedae0c6a571aca8ceb1bb4f3dcd8413d321ceb202
parent4b4e573b43f135d6cabc8d66b17610df6e96aecf (diff)
downloadhercules-dfc1165e002487ba5fcb8945676381f1709ec469.tar.gz
hercules-dfc1165e002487ba5fcb8945676381f1709ec469.tar.bz2
hercules-dfc1165e002487ba5fcb8945676381f1709ec469.tar.xz
hercules-dfc1165e002487ba5fcb8945676381f1709ec469.zip
Fixed issue 8201
http://hercules.ws/board/tracker/issue-8201-map-server-crash/
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 94bcd1d1b..6b64bb488 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8122,7 +8122,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
if( dstsd && dstsd->special_state.no_magic_damage )
break;
- if ( sd && sd->status.party_id == 0 )
+ if ( sd == NULL || (sd && sd->status.party_id == 0 ) )
count = 1;
else
count = party->foreachsamemap(party->sub_count, sd, 0);