Fix iterating

This commit is contained in:
tycho
2015-06-05 22:31:22 +01:00
parent 9ebbe969c8
commit ffbe5f6a2f
+1 -3
View File
@@ -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
{