diff options
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.cpp b/src/station.cpp index a8de1488e..5f60c7a2a 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -574,7 +574,7 @@ CommandCost StationRect::BeforeAddRect(TileIndex tile, int w, int h, StationRect TileArea ta(TileXY(left_a, top_a), TileXY(right_a, bottom_a)); FOR_ALL_LAYERS(layer) { - ta.tile += layer * LayerSize(); + ta.tile = TopTile(ta.tile) + layer * LayerSize(); for (TileIndex tile : ta) { if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st_id) return true; } |