summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 84c7efb60..89064f77a 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -415,9 +415,9 @@ bool StationRect::BeforeAddRect(TileIndex tile, int w, int h, StationRectMode mo
int width = right_a - left_a + 1;
int height = bottom_a - top_a + 1;
- BEGIN_TILE_LOOP(tile, width, height, top_left)
+ TILE_LOOP(tile, width, height, top_left) {
if (IsTileType(tile, MP_STATION) && GetStationIndex(tile) == st_id) return true;
- END_TILE_LOOP(tile, width, height, top_left);
+ }
return false;
}