From a0519a487af7773178280c5638a9524e33356fae Mon Sep 17 00:00:00 2001 From: tycho Date: Sat, 19 Sep 2015 17:22:57 +0100 Subject: Fixed wrong assumtion regarding RemoveClient Remove client can be called with a client that is not present in the chunk --- src/Chunk.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Chunk.h') diff --git a/src/Chunk.h b/src/Chunk.h index 683965c62..6316f6910 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -441,9 +441,7 @@ public: // Makes a copy of the list cClientHandleList GetAllClients(void) const { - cClientHandleList copy; - std::copy(m_LoadedByClient.begin(), m_LoadedByClient.end(), std::back_inserter(copy)); - return copy; + return cClientHandleList(m_LoadedByClient.begin(), m_LoadedByClient.end()); } private: -- cgit v1.2.3