forked from mirror/OpenTTD
Codechange: Close dropdowns by class instead of id.
This commit is contained in:
@@ -3483,7 +3483,7 @@ void ChangeVehicleViewports(VehicleID from_index, VehicleID to_index)
|
||||
*/
|
||||
void RelocateAllWindows(int neww, int newh)
|
||||
{
|
||||
CloseWindowById(WC_DROPDOWN_MENU, 0);
|
||||
CloseWindowByClass(WC_DROPDOWN_MENU);
|
||||
|
||||
for (Window *w : Window::Iterate()) {
|
||||
int left, top;
|
||||
|
Reference in New Issue
Block a user