Core: Fix some warnings
This commit is contained in:
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());
|
||||
|
||||
Reference in new issue
Block a user