aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index be7a3606086..f04d3a78715 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -2593,15 +2593,15 @@ void Spell::EffectTeleportUnits(uint32 i)
void Spell::EffectApplyAura(uint32 i)
{
- if (!m_spellAura)
+ if (!m_spellAura || !unitTarget)
return;
- assert (unitTarget == m_spellAura->GetOwner());
+ assert(unitTarget == m_spellAura->GetOwner());
m_spellAura->_ApplyEffectForTargets(i);
}
void Spell::EffectApplyAreaAura(uint32 i)
{
- if (!m_spellAura)
+ if (!m_spellAura || !unitTarget)
return;
assert (unitTarget == m_spellAura->GetOwner());
m_spellAura->_ApplyEffectForTargets(i);