diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index 35e0ae6..009d15f 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -13276,7 +13276,7 @@ VkResult VmaDefragmentationContext_T::DefragmentPassEnd(VmaDefragmentationPassMo for (const FragmentedBlock& block : immovableBlocks) { VmaBlockVector* vector = m_pBlockVectors[block.data]; - for (size_t i = m_ImmovableBlockCount; vector->GetBlockCount(); ++i) + for (size_t i = m_ImmovableBlockCount; i < vector->GetBlockCount(); ++i) { if (vector->GetBlock(i) == block.block) {