Fix HL2 (non-episodic) build

Broke in cea38f03ec1834ac9f3ab60340746b308df872ec.
This commit is contained in:
Alexander 'z33ky' Hirsch 2021-12-25 11:26:15 +01:00
parent c25053d1d2
commit 192b6983ea

View File

@ -1059,12 +1059,12 @@ void CRagdollLRURetirement::Update( float frametime ) // Non-episodic version
if ( m_LRU.Count() > iMaxRagdollCount ) if ( m_LRU.Count() > iMaxRagdollCount )
{ {
//Found one, we're done. //Found one, we're done.
if ( ShouldRemoveThisRagdoll( m_LRU[i] ) == true ) if ( ShouldRemoveThisRagdoll( pRagdoll ) == true )
{ {
#ifdef CLIENT_DLL #ifdef CLIENT_DLL
m_LRU[ i ]->SUB_Remove(); pRagdoll->SUB_Remove();
#else #else
m_LRU[ i ]->SUB_StartFadeOut( 0 ); pRagdoll->SUB_StartFadeOut( 0 );
#endif #endif
m_LRU.Remove(i); m_LRU.Remove(i);
@ -1108,9 +1108,9 @@ void CRagdollLRURetirement::Update( float frametime ) // Non-episodic version
#endif #endif
#ifdef CLIENT_DLL #ifdef CLIENT_DLL
m_LRU[ i ]->SUB_Remove(); pRagdoll->SUB_Remove();
#else #else
m_LRU[ i ]->SUB_StartFadeOut( 0 ); pRagdoll->SUB_StartFadeOut( 0 );
#endif #endif
m_LRU.Remove(i); m_LRU.Remove(i);
} }