summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-03-05 14:19:08 -0300
committershennetsind <ind@henn.et>2015-03-05 14:19:08 -0300
commitcb8bd9042d2c589421d6b6f1c9a63122d59a4d47 (patch)
tree33b4f6d465d3634b0d65f8e6823f2f811c5b67e4 /src/map/skill.c
parentc0451c376802073838f629bff75b9a61a30362ca (diff)
downloadhercules-cb8bd9042d2c589421d6b6f1c9a63122d59a4d47.tar.gz
hercules-cb8bd9042d2c589421d6b6f1c9a63122d59a4d47.tar.bz2
hercules-cb8bd9042d2c589421d6b6f1c9a63122d59a4d47.tar.xz
hercules-cb8bd9042d2c589421d6b6f1c9a63122d59a4d47.zip
Fixed Bug 8535
Mob/Clone causing a crash when casting absorb spirits outside of a 'vs' map. Special Thanks to kyeme, Playtester. http://hercules.ws/board/tracker/issue-8535-map-crash/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-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 96ade3908..88ca45ae5 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6146,7 +6146,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
{
int sp = 0;
if ( dstsd && dstsd->spiritball
- && (sd == dstsd || map_flag_vs(src->m) || (sd->duel_group && sd->duel_group == dstsd->duel_group))
+ && (sd == dstsd || map_flag_vs(src->m) || (sd && sd->duel_group && sd->duel_group == dstsd->duel_group))
&& ((dstsd->class_&MAPID_BASEMASK) != MAPID_GUNSLINGER || (dstsd->class_&MAPID_UPPERMASK) != MAPID_REBELLION)
) {
// split the if for readability, and included gunslingers in the check so that their coins cannot be removed [Reddozen]