diff options
author | megamage <none@none> | 2009-05-29 16:52:35 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-29 16:52:35 -0500 |
commit | ff4241e5eb34877be668e27473867e45f85df126 (patch) | |
tree | 70d1bd8d6435bd89049d6a03deb5d2a4e78c363a /src | |
parent | 89f4c1c444b9a0b090d71667c26f05165394a594 (diff) |
*Fix a crash caused by removing areaaura. Thanks to arthurcik
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuras.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 217074b743f..da2f2b8d7d8 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -695,7 +695,10 @@ void AreaAuraEffect::Update(uint32 diff) Unit *source = m_target; Unit *caster = GetCaster(); if (!caster) + { m_target->RemoveAura(GetParentAura()); + return; + } if( !source->hasUnitState(UNIT_STAT_ISOLATED) ) { |