*use ASSERT macro instead of regular assert for better output.
--HG-- branch : trunk
This commit is contained in:
@@ -551,7 +551,7 @@ void GameObject::Delete()
|
||||
if (Unit * owner = GetOwner())
|
||||
owner->RemoveGameObject(this, false);
|
||||
|
||||
assert (!GetOwnerGUID());
|
||||
ASSERT (!GetOwnerGUID());
|
||||
SendObjectDeSpawnAnim(GetGUID());
|
||||
|
||||
SetGoState(GO_STATE_READY);
|
||||
|
||||
@@ -634,7 +634,7 @@ class GameObject : public WorldObject, public GridObject<GameObject>
|
||||
// Owner already found and different than expected owner - remove object from old owner
|
||||
if (owner && GetOwnerGUID() && GetOwnerGUID() != owner)
|
||||
{
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
m_spawnedByDefault = false; // all object with owner is despawned after delay
|
||||
SetUInt64Value(OBJECT_FIELD_CREATED_BY, owner);
|
||||
|
||||
Reference in New Issue
Block a user