1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 11:44:17 +01:00

Codechange: Dereference with x-> instead of (*x). (#14700)

This commit is contained in:
Peter Nelson
2025-10-05 15:47:33 +01:00
committed by GitHub
parent c9fbc41636
commit a617d009cc
12 changed files with 19 additions and 19 deletions

View File

@@ -1637,8 +1637,8 @@ static void ViewportSortParentSprites(ParentSpriteToSortVector *psdv)
auto ssum = std::max(s->xmax, s->xmin) + std::max(s->ymax, s->ymin);
auto prev = sprite_list.before_begin();
auto x = sprite_list.begin();
while (x != sprite_list.end() && ((*x).first <= ssum)) {
auto p = (*x).second;
while (x != sprite_list.end() && x->first <= ssum) {
auto p = x->second;
if (p == s) {
/* We found the current sprite, remove it and move on. */
x = sprite_list.erase_after(prev);