*Try to fix a bug that crash happens in GetInstance().

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-01 13:29:08 -06:00
parent b192fb879c
commit 27adb19eb8
+1 -1
View File
@@ -569,7 +569,7 @@ ObjectAccessor::Update(uint32 diff)
{
Object* obj = *i_objects.begin();
i_objects.erase(i_objects.begin());
if (!obj)
if (!obj || !obj->IsInWorld())
continue;
_buildUpdateObject(obj, update_players);
obj->ClearUpdateMask(false);