From 2490f8f4712e2e8f1727c674aafddea448829ab6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 Jan 2009 23:19:59 +0000 Subject: (svn r14881) -Fix (r14880): somehow make didn't think that widgets/dropdown.cpp did depend on window_gui.h... --- src/widgets/dropdown.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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(*wz); + DropdownWindow *dw = dynamic_cast(w); if (pw->window_class == dw->parent_wnd_class && pw->window_number == dw->parent_wnd_num) { delete dw; -- cgit v1.2.3-70-g09d2