mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
First attempt at fixing zone shutdown crashes. (Mob timer processing accessing released resources.)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user