Skip to content

Commit

Permalink
collide_map.cpp: Don't cache list_end, as discussed
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengtuggy authored Oct 11, 2023
1 parent a574ed3 commit eef1f8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/src/cmd/collide_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eef1f8d

Please sign in to comment.