Something causing an infinite recursion...

This commit is contained in:
2021-11-08 15:39:46 +01:00
parent 97dcf25a59
commit 6708b08d23
2 changed files with 156 additions and 145 deletions
@@ -124,7 +124,7 @@ PSubAllocation Allocation::getSuballocation(VkDeviceSize requestedSize, VkDevice
void Allocation::markFree(SubAllocation *allocation)
{
// Dont free if it is already a free allocation, since they also mark themselves on deletion
if (freeRanges.find(allocation->allocatedOffset) != nullptr)
if (freeRanges.find(allocation->allocatedOffset) != freeRanges.end())
{
return;
}