*Try to fix a crash.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-04-06 21:36:38 +02:00
parent 5e6435c3b2
commit 09ac9f24ff
+6
View File
@@ -4074,6 +4074,12 @@ void Unit::RemoveNotOwnSingleTargetAuras()
void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode) void Unit::RemoveAura(AuraMap::iterator &i, AuraRemoveMode mode)
{ {
Aura* Aur = i->second; 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(); SpellEntry const* AurSpellInfo = Aur->GetSpellProto();
// some ShapeshiftBoosts at remove trigger removing other auras including parent Shapeshift aura // some ShapeshiftBoosts at remove trigger removing other auras including parent Shapeshift aura