summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2021-05-09 17:10:07 +0200
committerfrosch <github@elsenhans.name>2021-05-12 23:22:41 +0200
commitf96f11395162a8d57f5fdcef18c7a64f7acf76f8 (patch)
tree3bd204df568095710d745b6bcb70cd231f8e928b /src/misc_gui.cpp
parent22567a1f43d29a7596b9ef88441d5a65776fa2c8 (diff)
downloadopenttd-f96f11395162a8d57f5fdcef18c7a64f7acf76f8.tar.xz
Codechange: use IterateFromBack/Front only if the order is important.
Use Iterate if the order does not matter.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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;