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

This commit is contained in:
Adam Sawicki 2017-07-11 17:41:40 +02:00
parent 9e1684f87a
commit d55d084dd3

View File

@ -1486,7 +1486,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;
@ -1510,7 +1510,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;