aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-17 14:03:18 -0600
committermegamage <none@none>2009-01-17 14:03:18 -0600
commit8f22b65443e12de4be9a9d994f3240129331c36d (patch)
tree7f3a76ab4e28961219a10b1a9a920d6f5f6d529b /src/game/Unit.cpp
parentc5dfe7dac27a0441192af758dc55e6c71c83ccb4 (diff)
*Add assert to try to find the reason of crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index c415d0a9d1b..6a3efdf266f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -257,6 +257,9 @@ Unit::~Unit()
RemoveAllDynObjects();
if(m_charmInfo) delete m_charmInfo;
+
+ RemoveAllAuras();
+ assert(m_Auras.begin() == m_Auras.end());
}
void Unit::Update( uint32 p_time )