Fixing = instead of == in VMA_HEAVY_ASSERT (thanks @zeux!)

This commit is contained in:
Adam Sawicki 2017-07-11 17:42:44 +02:00
parent 988ac4c05d
commit 4dc9934eb4

View File

@ -1787,7 +1787,7 @@ VmaListItem<T>* VmaRawList<T>::InsertBefore(ItemType* pItem)
prevItem->pNext = newItem; prevItem->pNext = newItem;
else else
{ {
VMA_HEAVY_ASSERT(m_pFront = pItem); VMA_HEAVY_ASSERT(m_pFront == pItem);
m_pFront = newItem; m_pFront = newItem;
} }
++m_Count; ++m_Count;
@ -1811,7 +1811,7 @@ VmaListItem<T>* VmaRawList<T>::InsertAfter(ItemType* pItem)
nextItem->pPrev = newItem; nextItem->pPrev = newItem;
else else
{ {
VMA_HEAVY_ASSERT(m_pBack = pItem); VMA_HEAVY_ASSERT(m_pBack == pItem);
m_pBack = newItem; m_pBack = newItem;
} }
++m_Count; ++m_Count;