1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 02:12:37 +01:00

Codechange: Close dropdowns by class instead of id.

This commit is contained in:
Peter Nelson
2023-06-03 13:21:08 +01:00
committed by Loïc Guilloux
parent 81e5cd23e0
commit 53709f0bdc
2 changed files with 2 additions and 2 deletions

View File

@@ -3489,7 +3489,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;