mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r14881) -Fix (r14880): somehow make didn't think that widgets/dropdown.cpp did depend on window_gui.h...
This commit is contained in:
parent
19edb3ccc3
commit
2490f8f471
@ -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…
Reference in New Issue
Block a user