1
0
Fork 0

(svn r14881) -Fix (r14880): somehow make didn't think that widgets/dropdown.cpp did depend on window_gui.h...

release/0.7
rubidium 2009-01-06 23:19:59 +00:00
parent 19edb3ccc3
commit 2490f8f471
1 changed files with 4 additions and 4 deletions

View File

@ -374,11 +374,11 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt
*/ */
void HideDropDownMenu(Window *pw) void HideDropDownMenu(Window *pw)
{ {
Window **wz; Window *w;
FOR_ALL_WINDOWS(wz) { FOR_ALL_WINDOWS_FROM_BACK(w) {
if ((*wz)->window_class != WC_DROPDOWN_MENU) continue; 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 && if (pw->window_class == dw->parent_wnd_class &&
pw->window_number == dw->parent_wnd_num) { pw->window_number == dw->parent_wnd_num) {
delete dw; delete dw;