diff --git a/public/tier1/utlmemory.h b/public/tier1/utlmemory.h index 5fb2e9f2..ee7cc914 100644 --- a/public/tier1/utlmemory.h +++ b/public/tier1/utlmemory.h @@ -768,7 +768,7 @@ CUtlMemoryAligned::CUtlMemoryAligned( int nGrowSize, int nInitAll { UTLMEMORY_TRACK_ALLOC(); MEM_ALLOC_CREDIT_CLASS(); - CUtlMemory::m_pMemory = (T*)_aligned_malloc( nInitAllocationCount * sizeof(T), nAlignment ); + CUtlMemory::m_pMemory = (T*)_aligned_malloc( CUtlMemory::m_nAllocationCount * sizeof(T), nAlignment ); } }