diff options
author | QAston <none@none> | 2009-04-06 21:36:38 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-06 21:36:38 +0200 |
commit | 09ac9f24ff42b8b75b92d949496bd7e7932638e1 (patch) | |
tree | c46dbf483c4efc35d138c6f3d4a51ba9a19f7236 /src/game/Unit.cpp | |
parent | 5e6435c3b247034839843796ebcb5df74dd04f51 (diff) |
*Try to fix a crash.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 15ffdf494b2..20025cfcd45 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -4074,6 +4074,12 @@ void Unit::RemoveNotOwnSingleTargetAuras() void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode) { Aura* Aur = i->second; + //aura can be during update when removing, set it to remove at next update + if (Aur->IsUpdated()) + { + Aur->RemoveAura(); + } + SpellEntry const* AurSpellInfo = Aur->GetSpellProto(); // some ShapeshiftBoosts at remove trigger removing other auras including parent Shapeshift aura |