1
0
Fork 0

Codefix: StationUsesDefaultType always returned false for rail waypoints

pull/12933/head
Jonathan G Rennison 2024-08-22 15:15:29 +01:00 committed by Peter Nelson
parent cb2f4f319c
commit 81b684aa42
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ static void HandleStationPlacement(TileIndex start, TileIndex end)
static bool StationUsesDefaultType(const BaseStation *bst)
{
for (TileIndex t : bst->train_station) {
if (bst->TileBelongsToRailStation(t) && IsRailStation(t) && GetCustomStationSpecIndex(t) == 0) return true;
if (bst->TileBelongsToRailStation(t) && HasStationRail(t) && GetCustomStationSpecIndex(t) == 0) return true;
}
return false;
}