diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 20679dfb44..4ffbbd1e8a 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -423,6 +423,7 @@ struct BuildRailToolbarWindow : Window { { if (this->IsWidgetLowered(WID_RAT_BUILD_STATION)) SetViewportCatchmentStation(nullptr, true); if (_settings_client.gui.link_terraform_toolbar) CloseWindowById(WC_SCEN_LAND_GEN, 0, false); + CloseWindowById(WC_SELECT_STATION, 0); this->Window::Close(); } @@ -2024,6 +2025,12 @@ struct BuildRailWaypointWindow : PickerWindowBase { matrix->SetClicked(_cur_waypoint_type); } + void Close() override + { + CloseWindowById(WC_SELECT_STATION, 0); + this->PickerWindowBase::Close(); + } + void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) override { switch (widget) {