From 7738d5ae6e36775d8548895f3404b0297490b07d Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Sun, 3 Aug 2025 19:13:44 +0300 Subject: [PATCH] Fix CUtlLeanVector::EnsureCapacity --- public/tier1/utlleanvector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier1/utlleanvector.h b/public/tier1/utlleanvector.h index f7dc7141..b0124253 100644 --- a/public/tier1/utlleanvector.h +++ b/public/tier1/utlleanvector.h @@ -210,7 +210,7 @@ void CUtlLeanVectorBase::EnsureCapacity( int num, bool force ) T *pNew = nullptr; if(IsExternallyAllocated()) { - CAllocator::template Alloc( nNewAllocated, nNewAllocated ); + pNew = CAllocator::template Alloc( nNewAllocated, nNewAllocated ); V_memmove( pNew, Base(), m_nCount * sizeof( T ) ); } else