mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-11 13:08:00 +08:00
Replace CKeyValues3Context with CKV3Arena (#370)
This commit is contained in:
1 parent
6905277ebd
commit
8589884a17
7 files changed
+66
-66
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user