1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #20134: Don't update grass length outside of the actual map

This commit is contained in:
ζeh Matt
2023-05-06 02:31:46 +03:00
parent 936f017147
commit cc1eee5bee

View File

@@ -1335,6 +1335,9 @@ void MapUpdateTiles()
for (int32_t blockX = 0; blockX < gMapSize.x; blockX += 256)
{
auto mapPos = TileCoordsXY{ blockX + x, blockY + y }.ToCoordsXY();
if (MapIsEdge(mapPos))
continue;
auto* surfaceElement = MapGetSurfaceElementAt(mapPos);
if (surfaceElement != nullptr)
{