summaryrefslogtreecommitdiffstats
path: root/src/ChunkSender.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-06-01 11:08:00 +0200
committertycho <work.tycho@gmail.com>2015-06-05 23:31:22 +0200
commitffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15 (patch)
tree577a5327d49b0a5aea32b440ad7295e299479d3d /src/ChunkSender.cpp
parentMade the list of chunks to stream an unordered_set (diff)
downloadcuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar.gz
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar.bz2
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar.lz
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar.xz
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.tar.zst
cuberite-ffbe5f6a2f0ddeb5ba20919c8067e6b51143ee15.zip
Diffstat (limited to '')
-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
{