diff --git a/station_cmd.c b/station_cmd.c index b88c9f0e1d..df14054eda 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) {