1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-04 00:23:25 +08:00

Fix UtlSortVector member initialization order (#275)

This commit is contained in:
zer0.k 2024-10-09 13:01:07 +02:00 committed by GitHub
parent 16c1ee14de
commit fc4b98f1a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,13 +120,13 @@ private:
//-----------------------------------------------------------------------------
template <class T, class LessFunc>
CUtlSortVector<T, LessFunc>::CUtlSortVector( int nGrowSize, int initSize ) :
m_pLessContext(NULL), CUtlVector<T>( nGrowSize, initSize ), m_bNeedsSort( false )
CUtlVector<T>( nGrowSize, initSize ), m_pLessContext(NULL), m_bNeedsSort( false )
{
}
template <class T, class LessFunc>
CUtlSortVector<T, LessFunc>::CUtlSortVector( T* pMemory, int numElements ) :
m_pLessContext(NULL), CUtlVector<T>( pMemory, numElements ), m_bNeedsSort( false )
CUtlVector<T>( pMemory, numElements ), m_pLessContext(NULL), m_bNeedsSort( false )
{
}