diff options
| author | ariel- <ariel-@users.noreply.github.com> | 2016-11-15 12:02:31 -0300 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2016-11-15 12:02:31 -0300 |
| commit | 64304d8b2b33ac04d3013d47b2f50c5023300c2e (patch) | |
| tree | e0e136019f149f10db50a762bddc8876eec93aee /src/server/game/Spells/SpellInfo.cpp | |
| parent | cdd7461d2534af170ae5704758554047f887fd4d (diff) | |
Core/Spell: fix a potential null dereference crash
Diffstat (limited to 'src/server/game/Spells/SpellInfo.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index a7b86d2d433..8657b122de1 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -1255,7 +1255,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) |
