Core: Fix some warnings

This commit is contained in:
Spp committed 2011-10-18 12:39:01 +02:00
1 parent 805e14a463
commit bc023c6dfb
6 files changed
+28 -26

No files matched your search

@@ -602,10 +602,12 @@ void GameObject::Delete()
{
SetLootState(GO_NOT_READY);
if (GetOwnerGUID())
{
if (Unit* owner = GetOwner())
owner->RemoveGameObject(this, false);
else //! Owner not in world anymore
SetOwnerGUID(0);
}
ASSERT (!GetOwnerGUID());
SendObjectDeSpawnAnim(GetGUID());