Updated IKeyValuesSystem.

This commit is contained in:
Nicholas Hastings committed 2013-03-29 09:22:08 -04:00
1 parent 4dbcfc2d11
commit ade87d3fc5
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -2343,13 +2343,13 @@ bool KeyValues::ReadAsBinary( CUtlBuffer &buffer )
void *KeyValues::operator new( size_t iAllocSize )
{
MEM_ALLOC_CREDIT();
return KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize);
return KeyValuesSystem()->AllocKeyValuesMemory();
}
void *KeyValues::operator new( size_t iAllocSize, int nBlockUse, const char *pFileName, int nLine )
{
MemAlloc_PushAllocDbgInfo( pFileName, nLine );
void *p = KeyValuesSystem()->AllocKeyValuesMemory(iAllocSize);
void *p = KeyValuesSystem()->AllocKeyValuesMemory();
MemAlloc_PopAllocDbgInfo();
return p;
}