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
+2 -2
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);