diff --git a/engine/src/cmd/collide_map.cpp b/engine/src/cmd/collide_map.cpp index 5dcbcbb3d2..96fafffad0 100644 --- a/engine/src/cmd/collide_map.cpp +++ b/engine/src/cmd/collide_map.cpp @@ -160,9 +160,8 @@ void CollideArray::flatten() { collideUpdate(*tmp, index); } - auto listend = toflattenhints[i].end(); for (auto j = toflattenhints[i].begin(); - j != listend; + j != toflattenhints[i].end(); ++j) { if (j->radius != 0) { sorted[--index] = *j;