1
0
Fork 0

Fixed erase

This commit is contained in:
tycho 2015-09-19 00:30:43 +01:00
parent 9b3933d641
commit 49724cd427
1 changed files with 1 additions and 1 deletions

View File

@ -1885,7 +1885,7 @@ bool cChunk::AddClient(cClientHandle * a_Client)
void cChunk::RemoveClient(cClientHandle * a_Client)
{
std::remove(m_LoadedByClient.begin(), m_LoadedByClient.end(), a_Client);
m_LoadedByClient.erase(std::remove(m_LoadedByClient.begin(), m_LoadedByClient.end(), a_Client));
if (!a_Client->IsDestroyed())
{