Use Window iterate instead of from front/back when no order required

This commit is contained in:
Jonathan G Rennison
2023-09-18 18:34:50 +01:00
parent cd2a368d77
commit 52e4688851
8 changed files with 23 additions and 23 deletions

View File

@@ -527,7 +527,7 @@ static void ShutdownGame()
static void LoadIntroGame(bool load_newgrfs = true)
{
UnshowCriticalError();
for (Window *w : Window::IterateFromFront()) {
for (Window *w : Window::Iterate()) {
w->Close();
}