1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Fix crash in dev builds due to sign issues (#10405)

This commit is contained in:
Duncan
2019-12-21 13:08:57 +00:00
committed by Michael Steenbeek
parent 5cd6c67abd
commit 228205a199

View File

@@ -1256,7 +1256,7 @@ static void sub_6E1F34(
assert(i < MAXIMUM_MAP_SIZE_TECHNICAL);
tileZ += scenery_entry->large_scenery.tiles[i].z_clearance;
}
maxPossibleHeight -= tileZ;
maxPossibleHeight = std::max(0, maxPossibleHeight - tileZ);
}
can_raise_item = true;
}