Merge pull request #240 from AtomontageInc/master

Fix VmaSmallVector::push_back
This commit is contained in:
Adam Sawicki 2022-02-18 14:21:09 +01:00 committed by GitHub
commit 042e65e7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4301,8 +4301,9 @@ VmaSmallVector<T, AllocatorT, N>::VmaSmallVector(size_t count, const AllocatorT&
template<typename T, typename AllocatorT, size_t N>
void VmaSmallVector<T, AllocatorT, N>::push_back(const T& src)
{
resize(m_Count + 1);
data()[m_Count] = src;
const size_t newIndex = size();
resize(newIndex + 1);
data()[newIndex] = src;
}
template<typename T, typename AllocatorT, size_t N>