From 86b046cd26a67c1a216e5487ff72c91f80d8e4d0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 10 Jan 2024 00:20:34 +0000 Subject: [PATCH] Fix: Incorrect assertion in GetTileIndexFromLocalCoordinate (#11747) --- src/pathfinder/water_regions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathfinder/water_regions.cpp b/src/pathfinder/water_regions.cpp index 5a6e25a776..2bda5aa1cf 100644 --- a/src/pathfinder/water_regions.cpp +++ b/src/pathfinder/water_regions.cpp @@ -191,7 +191,7 @@ std::vector _water_regions; TileIndex GetTileIndexFromLocalCoordinate(int region_x, int region_y, int local_x, int local_y) { - assert(local_x >= 0 && local_y < WATER_REGION_EDGE_LENGTH); + assert(local_x >= 0 && local_x < WATER_REGION_EDGE_LENGTH); assert(local_y >= 0 && local_y < WATER_REGION_EDGE_LENGTH); return TileXY(WATER_REGION_EDGE_LENGTH * region_x + local_x, WATER_REGION_EDGE_LENGTH * region_y + local_y); }