mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Use the correct count to work out if regions will overlap. Fix #4114
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user