1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 10:59:12 +00:00

Fix #14506, aac3a5b6: Restore prefilling of _stations_nearby_list (#14551)

This commit is contained in:
Loïc Guilloux
2025-08-30 21:11:09 +02:00
committed by GitHub
parent b867939f37
commit fac55d0278

View File

@@ -2458,6 +2458,7 @@ void ShowSelectBaseStationIfNeeded(TileArea ta, StationPickerCmdProc&& proc)
{
if (StationJoinerNeeded<T>(proc)) {
if (!_settings_client.gui.persistent_buildingtools) ResetObjectToPlace();
FindStationsNearby<T>(ta, false);
new SelectStationWindow<T>(_select_station_desc, ta, std::move(proc));
} else {
proc(false, StationID::Invalid());