Skip to content

Commit da9205c

Browse files
committed
Fix ObjectGuid check in RemoveFromWorld method
1 parent c9fdfad commit da9205c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

methods/TrinityCore/GameObjectMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ namespace LuaGameObject
232232

233233
// cs_gobject.cpp copy paste
234234
ObjectGuid ownerGuid = go->GetOwnerGUID();
235-
if (ownerGuid)
235+
if (!ownerGuid.IsEmpty())
236236
{
237237
Unit* owner = eObjectAccessor()GetUnit(*go, ownerGuid);
238238
if (!owner || !ownerGuid.IsPlayer())

0 commit comments

Comments
 (0)