mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-08 11:08:23 +00:00
Fix CUtlLeanVector::EnsureCapacity
This commit is contained in:
parent
c2598bf9e8
commit
7738d5ae6e
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user