Core/Spell: fix a potential null dereference crash
This commit is contained in:
1 parent
b5e37e956d
commit
de4aec3204
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user