This commit is contained in:
Joshua 2025-04-03 08:14:09 -04:00 committed by GitHub
commit 8176e8443f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -2434,7 +2434,7 @@ FORCEINLINE Vector CParticleCollection::GetControlPointVelocityAtCurrentTime( in
FORCEINLINE bool CParticleCollection::IsValid( void ) const
{
return ( m_pDef != NULL && m_pDef->GetMaterial() );
return ( m_pDef != CUtlReference<CParticleSystemDefinition>(NULL) && m_pDef->GetMaterial() );
}

View file

@ -244,7 +244,7 @@ void CUtlSortVector<T, LessFunc, BaseVector>::QuickSort( LessFunc& less, int nLo
ctx.m_pLessContext = m_pLessContext;
ctx.m_pLessFunc = &less;
qsort_s( Base(), Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector<T, LessFunc>::CompareHelper, &ctx );
qsort_s( this->Base(), this->Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector<T, LessFunc>::CompareHelper, &ctx );
}
#else
typedef int (__cdecl *QSortCompareFunc_t)( const void *, const void *);

View file

@ -105,7 +105,7 @@ public:
inline bool HasElement( const char* pStr ) const
{
return Find( pStr ) != UTL_INVAL_SYMBOL;
return Find( pStr ) != CUtlSymbol(UTL_INVAL_SYMBOL);
}
// Remove all symbols in the table.