summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChunkSender.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ChunkSender.cpp b/src/ChunkSender.cpp
index 5790accdb..877aacfc5 100644
--- a/src/ChunkSender.cpp
+++ b/src/ChunkSender.cpp
@@ -226,9 +226,7 @@ void cChunkSender::SendChunk(int a_ChunkX, int a_ChunkZ, std::unordered_set<cCli
{
if (!(*itr)->WantsSendChunk(a_ChunkX, a_ChunkZ))
{
- auto toremove = itr;
- itr++;
- a_Clients.erase(toremove);
+ itr = a_Clients.erase(itr);
}
else
{