summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-09-19 03:37:12 +0200
committerworktycho <work.tycho@gmail.com>2015-09-19 03:37:12 +0200
commit553c695fd2d257191c955db30c377cef4e17c441 (patch)
tree61f4576eecce8cccb325d42b3a42de260d32029b /src
parentMerge pull request #2479 from cuberite/clientPerformance (diff)
parentFixed erase (diff)
downloadcuberite-553c695fd2d257191c955db30c377cef4e17c441.tar
cuberite-553c695fd2d257191c955db30c377cef4e17c441.tar.gz
cuberite-553c695fd2d257191c955db30c377cef4e17c441.tar.bz2
cuberite-553c695fd2d257191c955db30c377cef4e17c441.tar.lz
cuberite-553c695fd2d257191c955db30c377cef4e17c441.tar.xz
cuberite-553c695fd2d257191c955db30c377cef4e17c441.tar.zst
cuberite-553c695fd2d257191c955db30c377cef4e17c441.zip
Diffstat (limited to 'src')
-rw-r--r--src/Chunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 6aee2eed9..6b061c53f 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -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())
{