diff --git a/landscape.c b/landscape.c index f92cd13498..2dfb3ccb0f 100644 --- a/landscape.c +++ b/landscape.c @@ -193,6 +193,7 @@ static Slope GetFoundationSlope(TileIndex tile, uint* z) FindLandscapeHeightByTile(&ti, tile); tileh = ti.tileh; + *z = ti.z; slope = _tile_type_procs[GetTileType(tile)]->get_slope_tileh_proc(&ti); // Flatter slope -> higher base height