diff --git a/r5dev/public/tier1/mempool.h b/r5dev/public/tier1/mempool.h index 24727d33..ae93f759 100644 --- a/r5dev/public/tier1/mempool.h +++ b/r5dev/public/tier1/mempool.h @@ -69,7 +69,7 @@ protected: class CBlob { public: - CBlob* m_pPrev, * m_pNext; + CBlob* m_pPrev; int m_NumBytes; // Number of bytes in this blob. char m_Data[1]; char m_Padding[3]; // to int align the struct diff --git a/r5dev/tier1/mempool.cpp b/r5dev/tier1/mempool.cpp index 6dadf880..af8229cc 100644 --- a/r5dev/tier1/mempool.cpp +++ b/r5dev/tier1/mempool.cpp @@ -214,7 +214,7 @@ void CUtlMemoryPool::AddNewBlob() // Link it in at the end of the blob list. pBlob->m_NumBytes = blobSize; - pBlob->m_pNext = m_pNext; + pBlob->m_pPrev = m_pNext; m_pNext = pBlob; m_pPrev = (CBlob*)AlignValue(pBlob->m_Data, m_nAlignment);