reintroduced spawn_list.erase, had removed when testing deadlock issues
This commit is contained in:
parent
f80a38d093
commit
08e929ddda
1 changed files with 3 additions and 1 deletions
|
@ -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__);
|
||||
|
|
Loading…
Reference in a new issue