summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index b88c9f0e1..df14054ed 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -301,7 +301,7 @@ static int CountMapSquareAround(TileIndex tile, TileType type, IndustryType indu
for (dx = -3; dx <= 3; dx++) {
for (dy = -3; dy <= 3; dy++) {
- cur_tile = tile + TileDiffXY(dx, dy);
+ cur_tile = TILE_MASK(tile + TileDiffXY(dx, dy));
if (IsTileType(cur_tile, type)) {
switch (type) {