mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +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;
|
T *pNew = nullptr;
|
||||||
if(IsExternallyAllocated())
|
if(IsExternallyAllocated())
|
||||||
{
|
{
|
||||||
CAllocator::template Alloc<T>( nNewAllocated, nNewAllocated );
|
pNew = CAllocator::template Alloc<T>( nNewAllocated, nNewAllocated );
|
||||||
V_memmove( pNew, Base(), m_nCount * sizeof( T ) );
|
V_memmove( pNew, Base(), m_nCount * sizeof( T ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user