aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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