forked from rosebudai/OpenRCT2-Web
Use the correct count to work out if regions will overlap. Fix #4114
This commit is contained in:
1 parent
e9df7310db
commit
83fa818190
1 file changed
+1
-1
@@ -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