mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +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:
+5
-3
@@ -4257,10 +4257,12 @@ bool EntityList::LimitCheckName(const char *npc_name)
|
||||
{
|
||||
auto it = npc_list.begin();
|
||||
while (it != npc_list.end()) {
|
||||
NPC* npc = it->second;
|
||||
if (npc)
|
||||
if (strcasecmp(npc_name, npc->GetRawNPCTypeName()) == 0)
|
||||
NPC *npc = it->second;
|
||||
if (npc) {
|
||||
if (strcasecmp(npc_name, npc->GetRawNPCTypeName()) == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
++it;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user