r5sdk/r5dev/tier0/tslist.cpp
Kawe Mazidjatari 8cb46354e6 Permanently fix aligned memalloc crash
It was still crashing as the thisptr should actually be passed into the alloc callback. Changed and the function call is now identical to engine's impl. Tested in Debug, Profile and Release, Release has also been tested with LTCG.
2023-07-10 13:49:36 +02:00

20 lines
652 B
C++

//=============================================================================//
//
// Purpose:
//
//=============================================================================//
#include "tier0/tslist.h"
//-----------------------------------------------------------------------------
// Purpose: constructor
// Input : *pAllocCallback -
// *pFreeCallback -
//-----------------------------------------------------------------------------
CAlignedMemAlloc::CAlignedMemAlloc(FnAlloc_t pAllocCallback, FnFree_t pFreeCallback)
{
m_pAllocCallback = pAllocCallback;
m_pFreeCallback = pFreeCallback;
}
CAlignedMemAlloc* g_pAlignedMemAlloc;