diff options
Diffstat (limited to 'src/tunnel_map.cpp')
-rw-r--r-- | src/tunnel_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tunnel_map.cpp b/src/tunnel_map.cpp index 648f233a8..8400c9483 100644 --- a/src/tunnel_map.cpp +++ b/src/tunnel_map.cpp @@ -47,6 +47,7 @@ bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir) do { tile -= delta; + if (!IsValidTile(tile)) return false; height = GetTileZ(tile); } while (z < height); |