From 885de1aff9533376a7f7d2a0c3344403a774822a Mon Sep 17 00:00:00 2001 From: glx Date: Fri, 28 Apr 2006 01:52:32 +0000 Subject: [PATCH] (svn r4602) - Fix: an assertion triggered when building a station near the south corner of the map (appeared in r4367) --- station_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {