1
0
Fork 0

Fix: Incorrect assertion in GetTileIndexFromLocalCoordinate

pull/11747/head
Jonathan G Rennison 2024-01-09 22:35:32 +00:00
parent 8f2266f0ed
commit 4e47f98b12
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}