aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <none@none>2009-05-06 18:22:46 +0200
committerQAston <none@none>2009-05-06 18:22:46 +0200
commit9de6139a3940c9107e347278a539603d94816409 (patch)
tree0d0047607973387a95c4a3de64189284d61664c1 /src
parentef4bcb723857237a211fc938e3255cfd5412fcf6 (diff)
*Fix a crash.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index c9ef3125372..85b5c04e545 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -186,6 +186,7 @@ Unit::~Unit()
RemoveAllGameObjects();
RemoveAllDynObjects();
+ _DeleteAuras();
if(m_charmInfo) delete m_charmInfo;
@@ -11417,7 +11418,6 @@ void Unit::CleanupsBeforeDelete()
//A unit may be in removelist and not in world, but it is still in grid
//and may have some references during delete
RemoveAllAuras();
- _DeleteAuras();
InterruptNonMeleeSpells(true);
m_Events.KillAllEvents(false); // non-delatable (currently casted spells) will not deleted now but it will deleted at call in Map::RemoveAllObjectsInRemoveList
CombatStop();