From eef1f8d21562e42b35ef9110a0166669247b22bf Mon Sep 17 00:00:00 2001 From: Stephen G Tuggy Date: Tue, 10 Oct 2023 20:45:38 -0700 Subject: [PATCH] collide_map.cpp: Don't cache list_end, as discussed --- engine/src/cmd/collide_map.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;