1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 03:56:10 +08:00

Correctly initialise CUtlLinkedList::m_LastAlloc

This commit is contained in:
GAMMACASE
2025-08-02 17:46:36 +03:00
parent 6a5f3717d8
commit 23cc77dfc7

View File

@ -161,7 +161,7 @@ protected:
ListElem_t const& InternalElement( I i ) const { return m_Memory[i]; }
// copy constructors not allowed
CUtlLinkedList( CUtlLinkedList<T, S, ML, I, M> const& list ) : m_LastAlloc( 0 ) { Assert(0); }
CUtlLinkedList( CUtlLinkedList<T, S, ML, I, M> const& list ) : m_LastAlloc( m_Memory.InvalidIterator() ) { Assert(0); }
M m_Memory;
I m_Head;