diff options
-rw-r--r-- | src/tile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 449156465..a7199c1b8 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -55,7 +55,7 @@ uint GetTileZ(TileIndex tile) uint GetTileMaxZ(TileIndex t) { - if (TileX(tile) == MapMaxX() || TileY(tile) == MapMaxY()) return 0; + if (TileX(t) == MapMaxX() || TileY(t) == MapMaxY()) return 0; uint h = TileHeight(t); h = max(h, TileHeight(t + TileDiffXY(1, 0))); |