First attempt at fixing zone shutdown crashes. (Mob timer processing accessing released resources.)

This commit is contained in:
Uleat
2014-08-24 05:42:43 -04:00
parent 16d47a2c47
commit 52ae78709b
5 changed files with 48 additions and 5 deletions
+1 -1
View File
@@ -1598,7 +1598,7 @@ Corpse *EntityList::GetCorpseByName(const char *name)
Spawn2 *EntityList::GetSpawnByID(uint32 id)
{
if (!zone)
if (!zone || !zone->IsLoaded())
return nullptr;
LinkedListIterator<Spawn2 *> iterator(zone->spawn2_list);