From 102e37dacacce20f8659d1fcf2ffc91c427fda79 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 9 Apr 2009 13:48:36 -0500 Subject: *Change some assert to better debug. --HG-- branch : trunk --- src/game/Unit.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') 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 -- cgit v1.2.3