From 4dc9934eb4c30fce18c21ec15213b6779a7721c6 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 11 Jul 2017 17:42:44 +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 1bc7bc1..71f3c05 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -1787,7 +1787,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; @@ -1811,7 +1811,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;