Replace CKeyValues3Context with CKV3Arena (#370)

This commit is contained in:
Michal authored and GAMMACASE committed 2026-03-20 17:56:33 +03:00
1 parent 6905277ebd
commit 8589884a17
7 files changed
+66 -66

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
CEntityKeyValues::CEntityKeyValues( CKeyValues3Context* allocator, EntityKVAllocatorType_t allocator_type ) :
CEntityKeyValues::CEntityKeyValues( CKV3Arena* allocator, EntityKVAllocatorType_t allocator_type ) :
m_pComplexKeys( NULL ),
m_nRefCount( 0 ),
m_nQueuedForSpawnCount( 0 ),
@@ -64,7 +64,7 @@ void CEntityKeyValues::ValidateAllocator()
else
{
Assert( m_eAllocatorType != EKV_ALLOCATOR_EXTERNAL );
m_pAllocator = new CKeyValues3Context( true );
m_pAllocator = new CKV3Arena( true );
}
m_pValues = m_pAllocator->AllocKV();