From b9a94c12357c610bd4b8ac707482db51f93beb66 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 13 Feb 2021 19:53:58 -0500 Subject: [PATCH] Core/Command: Fix gobject delete command. --- Source/Game/Chat/Commands/GameObjectCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Chat/Commands/GameObjectCommands.cs b/Source/Game/Chat/Commands/GameObjectCommands.cs index 40017ec18..d9a7c238a 100644 --- a/Source/Game/Chat/Commands/GameObjectCommands.cs +++ b/Source/Game/Chat/Commands/GameObjectCommands.cs @@ -83,7 +83,7 @@ namespace Game.Chat } ObjectGuid ownerGuid = obj.GetOwnerGUID(); - if (ownerGuid.IsEmpty()) + if (!ownerGuid.IsEmpty()) { Unit owner = Global.ObjAccessor.GetUnit(player, ownerGuid); if (!owner || !ownerGuid.IsPlayer())