*Add assert back to go::setownerguid

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-08 12:40:20 -05:00
parent 1165b889a0
commit 0d80df4e58
2 changed files with 5 additions and 13 deletions
+5
View File
@@ -611,6 +611,11 @@ class TRINITY_DLL_SPEC GameObject : public WorldObject
void SetOwnerGUID(uint64 owner)
{
// Owner already found and different than expected owner - remove object from old owner
if (owner && GetOwnerGUID() && GetOwnerGUID() != owner)
{
assert(false);
}
m_spawnedByDefault = false; // all object with owner is despawned after delay
SetUInt64Value(OBJECT_FIELD_CREATED_BY, owner);
}