1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 03:56:10 +08:00

Fix CUtlLeanVector::EnsureCapacity

This commit is contained in:
GAMMACASE
2025-08-03 19:13:44 +03:00
parent c2598bf9e8
commit 7738d5ae6e

View File

@ -210,7 +210,7 @@ void CUtlLeanVectorBase<T, I, A>::EnsureCapacity( int num, bool force )
T *pNew = nullptr;
if(IsExternallyAllocated())
{
CAllocator::template Alloc<T>( nNewAllocated, nNewAllocated );
pNew = CAllocator::template Alloc<T>( nNewAllocated, nNewAllocated );
V_memmove( pNew, Base(), m_nCount * sizeof( T ) );
}
else