1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 04:05:49 +01:00

Fix off-by-one when generating park minimaps (#24415)

This commit is contained in:
Aaron van Geffen
2025-05-16 22:11:46 +02:00
committed by GitHub
parent c51b755ea9
commit 06a75e312f

View File

@@ -155,7 +155,7 @@ namespace OpenRCT2
for (auto y = 0u; y < image.height; y++)
{
int32_t mapY = 1 + (y * mapSkipFactor);
if (mapY >= drawableMapSize.y)
if (mapY > drawableMapSize.y)
break;
_tileColourIndex = y % 2;