mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
*Temporary fix for crash caused by object list update.
--HG-- branch : trunk
This commit is contained in:
@@ -77,9 +77,10 @@ void GameObject::CleanupsBeforeDelete()
|
||||
if(uint64 owner_guid = GetOwnerGUID())
|
||||
{
|
||||
Unit* owner = NULL;
|
||||
if(IS_PLAYER_GUID(owner_guid))
|
||||
// Object may be deleted while player is not in world, skip this check for now.
|
||||
/*if(IS_PLAYER_GUID(owner_guid))
|
||||
owner = ObjectAccessor::GetObjectInWorld(owner_guid, (Player*)NULL);
|
||||
else
|
||||
else*/
|
||||
owner = ObjectAccessor::GetUnit(*this,owner_guid);
|
||||
|
||||
if(owner)
|
||||
|
||||
Reference in New Issue
Block a user