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

This commit is contained in:
duncanspumpkin committed 2016-07-16 18:07:13 +01:00
1 parent e9df7310db
commit 83fa818190
1 file changed
+1 -1
+1 -1
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;