Skip to content

Commit

Permalink
Fix: Incorrect assertion in GetTileIndexFromLocalCoordinate (OpenTTD#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison authored Jan 10, 2024
1 parent 8f2266f commit 86b046c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pathfinder/water_regions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ std::vector<WaterRegion> _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);
}
Expand Down

0 comments on commit 86b046c

Please sign in to comment.