1
0
Fork 0

Merge pull request #2484 from cuberite/clientPerformance

Fixed erase
This commit is contained in:
worktycho 2015-09-19 02:37:12 +01:00
commit 553c695fd2
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())
{