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

Use the correct count to work out if regions will overlap. Fix #4114

This commit is contained in:
duncanspumpkin
2016-07-16 18:07:13 +01:00
parent e9df7310db
commit 83fa818190

View File

@@ -102,7 +102,7 @@ static void FreeImageList(uint32 baseImageId, uint32 count)
for (auto it = _freeLists.begin(); it != _freeLists.end(); it++)
{
if (it->BaseId + count == baseImageId)
if (it->BaseId + it->Count == baseImageId)
{
it->Count += count;
return;