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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user