diff options
| author | megamage <none@none> | 2009-04-09 13:48:36 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-09 13:48:36 -0500 |
| commit | 102e37dacacce20f8659d1fcf2ffc91c427fda79 (patch) | |
| tree | a74f55710906fc7fba4c7273342a6e1d11256cc8 /src | |
| parent | 7e275145e27e11dfd81403106d34b209b7c2aa36 (diff) | |
*Change some assert to better debug.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 4 |
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 |
