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:
@ -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
|
||||
|
Reference in New Issue
Block a user