aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-09 13:48:36 -0500
committermegamage <none@none>2009-04-09 13:48:36 -0500
commit102e37dacacce20f8659d1fcf2ffc91c427fda79 (patch)
treea74f55710906fc7fba4c7273342a6e1d11256cc8 /src
parent7e275145e27e11dfd81403106d34b209b7c2aa36 (diff)
*Change some assert to better debug.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 97dc6351ccf..270f4c1a505 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11026,6 +11026,8 @@ void Unit::AddToWorld()
void Unit::RemoveFromWorld()
{
// cleanup
+ assert(GetGUID());
+
if(IsInWorld())
{
UnsummonAllTotems();
@@ -11043,7 +11045,7 @@ void Unit::RemoveFromWorld()
void Unit::CleanupsBeforeDelete()
{
- assert(m_uint32Values);
+ assert(GetGUID());
//A unit may be in removelist and not in world, but it is still in grid
//and may have some references during delete