Fixed bug in VmaBlockMetadata_Linear::PrintDetailedMap

Fixes #405 - thanks @marrodriguez-EA
This commit is contained in:
Adam Sawicki 2024-01-30 14:39:38 +01:00
parent 7924e27f81
commit 5db4414d39

View File

@ -7581,7 +7581,7 @@ void VmaBlockMetadata_Linear::PrintDetailedMap(class VmaJsonWriter& json) const
// We are at the end. // We are at the end.
else else
{ {
if (lastOffset < size) if (lastOffset < freeSpace1stTo2ndEnd)
{ {
// There is free space from lastOffset to freeSpace1stTo2ndEnd. // There is free space from lastOffset to freeSpace1stTo2ndEnd.
++unusedRangeCount; ++unusedRangeCount;