From f96f11395162a8d57f5fdcef18c7a64f7acf76f8 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 9 May 2021 17:10:07 +0200 Subject: Codechange: use IterateFromBack/Front only if the order is important. Use Iterate if the order does not matter. --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index a40bf5013..3094d0ead 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1289,7 +1289,7 @@ void ShowQuery(StringID caption, StringID message, Window *parent, QueryCallback { if (parent == nullptr) parent = FindWindowById(WC_MAIN_WINDOW, 0); - for (const Window *w : Window::IterateFromBack()) { + for (const Window *w : Window::Iterate()) { if (w->window_class != WC_CONFIRM_POPUP_QUERY) continue; const QueryWindow *qw = (const QueryWindow *)w; -- cgit v1.2.3-54-g00ecf