Fix crash in Spell::EffectApplyAura.
Fixes issue #657. --HG-- branch : trunk
This commit is contained in:
@@ -2593,7 +2593,7 @@ void Spell::EffectTeleportUnits(uint32 i)
|
|||||||
|
|
||||||
void Spell::EffectApplyAura(uint32 i)
|
void Spell::EffectApplyAura(uint32 i)
|
||||||
{
|
{
|
||||||
if (!m_spellAura)
|
if (!m_spellAura || !unitTarget)
|
||||||
return;
|
return;
|
||||||
assert(unitTarget == m_spellAura->GetOwner());
|
assert(unitTarget == m_spellAura->GetOwner());
|
||||||
m_spellAura->_ApplyEffectForTargets(i);
|
m_spellAura->_ApplyEffectForTargets(i);
|
||||||
@@ -2601,7 +2601,7 @@ void Spell::EffectApplyAura(uint32 i)
|
|||||||
|
|
||||||
void Spell::EffectApplyAreaAura(uint32 i)
|
void Spell::EffectApplyAreaAura(uint32 i)
|
||||||
{
|
{
|
||||||
if (!m_spellAura)
|
if (!m_spellAura || !unitTarget)
|
||||||
return;
|
return;
|
||||||
assert (unitTarget == m_spellAura->GetOwner());
|
assert (unitTarget == m_spellAura->GetOwner());
|
||||||
m_spellAura->_ApplyEffectForTargets(i);
|
m_spellAura->_ApplyEffectForTargets(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user