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
1 changed files with 1 additions and 1 deletions

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