*Temporary fix for crash caused by object list update.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-04 21:07:06 +02:00
parent 9d3c9af594
commit 6af144277d

View File

@@ -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)