Core/Misc: Fix logic for owner check in Unit::RemoveGameObject
This commit is contained in:
@@ -4624,7 +4624,8 @@ void Unit::AddGameObject(GameObject* gameObj)
|
||||
|
||||
void Unit::RemoveGameObject(GameObject* gameObj, bool del)
|
||||
{
|
||||
if (!gameObj || !gameObj->GetOwnerGUID() == GetGUID()) return;
|
||||
if (!gameObj || gameObj->GetOwnerGUID() != GetGUID())
|
||||
return;
|
||||
|
||||
gameObj->SetOwnerGUID(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user