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

pull/155/head
rubidium 16 years ago
parent aa6c7e8574
commit 4a204fbf96

@ -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;

Loading…
Cancel
Save