From dfc1165e002487ba5fcb8945676381f1709ec469 Mon Sep 17 00:00:00 2001 From: panikon Date: Mon, 19 May 2014 12:23:25 -0300 Subject: Fixed issue 8201 http://hercules.ws/board/tracker/issue-8201-map-server-crash/ --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-60-g2f50