diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 823cef8..a094898 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -10295,8 +10295,8 @@ bool VmaBlockMetadata_TLSF::CreateAllocationRequest( else sizeForNextList += smallSizeStep; - uint32_t nextListIndex = 0; - uint32_t prevListIndex = 0; + uint32_t nextListIndex = m_ListsCount; + uint32_t prevListIndex = m_ListsCount; Block* nextListBlock = VMA_NULL; Block* prevListBlock = VMA_NULL;