From d55d084dd33043afb920616d3878eddf369abe0e Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 11 Jul 2017 17:41:40 +0200 Subject: [PATCH] Fixing = instead of == in VMA_HEAVY_ASSERT (thanks @zeux!) --- src/vk_mem_alloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index 0f29d18..e9e7c49 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1486,7 +1486,7 @@ VmaListItem* VmaRawList::InsertBefore(ItemType* pItem) prevItem->pNext = newItem; else { - VMA_HEAVY_ASSERT(m_pFront = pItem); + VMA_HEAVY_ASSERT(m_pFront == pItem); m_pFront = newItem; } ++m_Count; @@ -1510,7 +1510,7 @@ VmaListItem* VmaRawList::InsertAfter(ItemType* pItem) nextItem->pPrev = newItem; else { - VMA_HEAVY_ASSERT(m_pBack = pItem); + VMA_HEAVY_ASSERT(m_pBack == pItem); m_pBack = newItem; } ++m_Count;