Core/Spell: fix a potential null dereference crash

This commit is contained in:
ariel- authored and Aokromes committed 2016-11-27 01:09:37 +01:00
1 parent b5e37e956d
commit de4aec3204
1 file changed
+1 -1
+1 -1
View File
@@ -1422,7 +1422,7 @@ bool SpellInfo::IsAffectedBySpellMod(SpellModifier const* mod) const
bool SpellInfo::CanPierceImmuneAura(SpellInfo const* auraSpellInfo) const
{
// aura can't be pierced
if (auraSpellInfo->HasAttribute(SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY))
if (!auraSpellInfo || auraSpellInfo->HasAttribute(SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY))
return false;
// these spells pierce all available spells (Resurrection Sickness for example)