aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-02-07 18:16:53 +0100
committerTrazom62 <none@none>2010-02-07 18:16:53 +0100
commitb0ea16f10b3e52d05d95e96eacffb4270dfddb69 (patch)
treebd88ff54b6a9533418601603f5f70344c6a8b9cb /src
parent8c87b682d3e394aa1022d7f4fcfea86d4b47709b (diff)
Fix crash in Spell::EffectApplyAura.
Fixes issue #657. --HG-- branch : trunk
Diffstat (limited to 'src')
-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);