Codechange: use explicit TileIndex constructor for tile 0

This commit is contained in:
Rubidium
2024-12-31 22:44:12 +01:00
committed by rubidium42
parent 562ec74812
commit fd5f6caed4
20 changed files with 48 additions and 48 deletions
+1 -1
View File
@@ -588,7 +588,7 @@ TileIndex RoadVehicle::GetOrderStationLocation(StationID station)
if (!CanVehicleUseStation(this, st)) {
/* There is no stop left at the station, so don't even TRY to go there */
this->IncrementRealOrderIndex();
return 0;
return TileIndex{};
}
return st->xy;