*Try to fix a bug that crash happens in GetInstance().
--HG-- branch : trunk
This commit is contained in:
@@ -569,7 +569,7 @@ ObjectAccessor::Update(uint32 diff)
|
|||||||
{
|
{
|
||||||
Object* obj = *i_objects.begin();
|
Object* obj = *i_objects.begin();
|
||||||
i_objects.erase(i_objects.begin());
|
i_objects.erase(i_objects.begin());
|
||||||
if (!obj)
|
if (!obj || !obj->IsInWorld())
|
||||||
continue;
|
continue;
|
||||||
_buildUpdateObject(obj, update_players);
|
_buildUpdateObject(obj, update_players);
|
||||||
obj->ClearUpdateMask(false);
|
obj->ClearUpdateMask(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user