aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-03 16:28:15 -0600
committermegamage <none@none>2009-04-03 16:28:15 -0600
commit34f9778296959a25d192313a333f21f8e2865449 (patch)
tree19abb9f119b11940c4765fa36f8393c3cf203f74 /src/game/Unit.cpp
parentc48ea87a035127ede390e6c461ecbd213bf3b7e0 (diff)
*Add some checks during object deconstruction.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 3df54dfe6c7..f9dfc24fac6 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -187,6 +187,11 @@ Unit::~Unit()
RemoveAllDynObjects();
if(m_charmInfo) delete m_charmInfo;
+
+ assert(!m_attacking);
+ assert(m_attackers.empty());
+ assert(m_sharedVision.empty());
+ assert(m_Controlled.empty());
}
void Unit::Update( uint32 p_time )