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:
@ -161,7 +161,7 @@ protected:
|
|||||||
ListElem_t const& InternalElement( I i ) const { return m_Memory[i]; }
|
ListElem_t const& InternalElement( I i ) const { return m_Memory[i]; }
|
||||||
|
|
||||||
// copy constructors not allowed
|
// 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;
|
M m_Memory;
|
||||||
I m_Head;
|
I m_Head;
|
||||||
|
Reference in New Issue
Block a user