mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Fix window closing in HideDropDownMenu
This commit is contained in:
parent
22a3a6d3c4
commit
e04fe06a7b
@ -515,7 +515,7 @@ int HideDropDownMenu(Window *pw)
|
||||
if (pw->window_class == dw->parent_wnd_class &&
|
||||
pw->window_number == dw->parent_wnd_num) {
|
||||
int parent_button = dw->parent_button;
|
||||
delete dw;
|
||||
dw->Close();
|
||||
return parent_button;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user