A fix in VmaBlockMetadata_TLSF::CreateAllocationRequest

Code by @medranSolus. See #343
This commit is contained in:
Adam Sawicki 2023-06-12 13:30:02 +02:00
parent 0e89587db3
commit 59734bbc63

View File

@ -10295,8 +10295,8 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest(
else else
sizeForNextList += smallSizeStep; sizeForNextList += smallSizeStep;
uint32_t nextListIndex = 0; uint32_t nextListIndex = m_ListsCount;
uint32_t prevListIndex = 0; uint32_t prevListIndex = m_ListsCount;
Block* nextListBlock = VMA_NULL; Block* nextListBlock = VMA_NULL;
Block* prevListBlock = VMA_NULL; Block* prevListBlock = VMA_NULL;