reintroduced spawn_list.erase, had removed when testing deadlock issues

This commit is contained in:
Image 2020-03-09 10:41:50 -04:00
parent f80a38d093
commit 08e929ddda

View file

@ -30,6 +30,8 @@ using namespace std;
#ifdef WIN32
#include <WinSock2.h>
#include <windows.h>
#include <dbghelp.h>
#pragma comment(lib,"imagehlp.lib")
#else
#include <sys/socket.h>
#ifdef FREEBSD //Timothy Whitman - January 7, 2003
@ -3724,7 +3726,7 @@ void ZoneServer::RemoveSpawn(bool spawnListLocked, Spawn* spawn, bool delete_spa
MSpawnList.writelock(__FUNCTION__, __LINE__);
LogWrite(ZONE__DEBUG, 7, "Zone", "RemoveSpawnList Start...");
spawn_list[spawn->GetID()] = 0;
spawn_list.erase(spawn->GetID());
if (!spawnListLocked)
MSpawnList.releasewritelock(__FUNCTION__, __LINE__);