summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-06 23:19:59 +0000
committerrubidium <rubidium@openttd.org>2009-01-06 23:19:59 +0000
commit2490f8f4712e2e8f1727c674aafddea448829ab6 (patch)
tree7ff0dfc500e5bcf02e28be2e2fcce387ebd98d13 /src
parent19edb3ccc3146c8ce4c739dadb2b53b1ed760850 (diff)
downloadopenttd-2490f8f4712e2e8f1727c674aafddea448829ab6.tar.xz
(svn r14881) -Fix (r14880): somehow make didn't think that widgets/dropdown.cpp did depend on window_gui.h...
Diffstat (limited to 'src')
-rw-r--r--src/widgets/dropdown.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp
index 2b7c41d64..63f1129ee 100644
--- a/src/widgets/dropdown.cpp
+++ b/src/widgets/dropdown.cpp
@@ -374,11 +374,11 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt
*/
void HideDropDownMenu(Window *pw)
{
- Window **wz;
- FOR_ALL_WINDOWS(wz) {
- if ((*wz)->window_class != WC_DROPDOWN_MENU) continue;
+ Window *w;
+ FOR_ALL_WINDOWS_FROM_BACK(w) {
+ if (w->window_class != WC_DROPDOWN_MENU) continue;
- DropdownWindow *dw = dynamic_cast<DropdownWindow*>(*wz);
+ DropdownWindow *dw = dynamic_cast<DropdownWindow*>(w);
if (pw->window_class == dw->parent_wnd_class &&
pw->window_number == dw->parent_wnd_num) {
delete dw;