1
0

Fix iterating

This commit is contained in:
tycho 2015-06-01 10:08:00 +01:00
parent 9ebbe969c8
commit ffbe5f6a2f

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
{