diff options
author | frosch <frosch@openttd.org> | 2021-05-09 17:10:07 +0200 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2021-05-12 23:22:41 +0200 |
commit | f96f11395162a8d57f5fdcef18c7a64f7acf76f8 (patch) | |
tree | 3bd204df568095710d745b6bcb70cd231f8e928b /src/widgets | |
parent | 22567a1f43d29a7596b9ef88441d5a65776fa2c8 (diff) | |
download | openttd-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/widgets')
-rw-r--r-- | src/widgets/dropdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index b6f7de3c1..a4bd00259 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -501,7 +501,7 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt */ int HideDropDownMenu(Window *pw) { - for (Window *w : Window::IterateFromBack()) { + for (Window *w : Window::Iterate()) { if (w->window_class != WC_DROPDOWN_MENU) continue; DropdownWindow *dw = dynamic_cast<DropdownWindow*>(w); |