mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Crash] Fix spawn race condition shown by #repop (#2455)
* Troubleshooting * Debugging * Debugging * Debugging * Debugging * Remove debug line * Revert back to GetRawNPCTypeName
This commit is contained in:
@@ -205,6 +205,11 @@ bool Spawn2::Process() {
|
||||
return (true);
|
||||
}
|
||||
|
||||
if (tmp->npc_id == 0) {
|
||||
LogError("NPC type did not load for npc_id [{}]", npcid);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (tmp->unique_spawn_by_name) {
|
||||
if (!entity_list.LimitCheckName(tmp->name)) {
|
||||
LogSpawns("Spawn2 [{}]: Spawn group [{}] yeilded NPC type [{}], which is unique and one already exists", spawn2_id, spawngroup_id_, npcid);
|
||||
|
||||
Reference in New Issue
Block a user