Fix issues with stablevector
This commit is contained in:
@@ -261,18 +261,17 @@ namespace OpenVulkano
|
||||
|
||||
void PopBack()
|
||||
{
|
||||
if (m_size == 0)
|
||||
{
|
||||
return; // return? or make
|
||||
}
|
||||
if (m_size == 0) return;
|
||||
|
||||
if (m_lastChunk->m_nextIndex == 1 && m_lastChunk != m_firstChunk)
|
||||
{
|
||||
VectorChunk* temp = m_lastChunk;
|
||||
m_capacity -= temp->m_capacity;
|
||||
m_lastChunk = m_lastChunk->m_prev;
|
||||
m_lastChunk->m_next = nullptr;
|
||||
temp->~VectorChunk();
|
||||
::operator delete(temp);
|
||||
m_size--;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user