Core/Creature: Fix crash in DeleteFromDB
This commit is contained in:
@@ -1521,7 +1521,7 @@ namespace Game.Entities
|
|||||||
|
|
||||||
// then delete any active instances of the creature
|
// then delete any active instances of the creature
|
||||||
var spawnMap = GetMap().GetCreatureBySpawnIdStore().LookupByKey(m_spawnId);
|
var spawnMap = GetMap().GetCreatureBySpawnIdStore().LookupByKey(m_spawnId);
|
||||||
foreach (var creature in spawnMap)
|
foreach (var creature in spawnMap.ToList())
|
||||||
creature.AddObjectToRemoveList();
|
creature.AddObjectToRemoveList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user