fix crashes

This commit is contained in:
Glenn Maynard
2006-11-19 02:28:33 +00:00
parent d4c9aa8e00
commit b6fd51b4fa
+3 -2
View File
@@ -256,7 +256,7 @@ void Player::Init(
// set initial life // set initial life
if( m_pLifeMeter ) if( m_pLifeMeter && m_pPlayerStageStats )
{ {
float fLife = m_pLifeMeter->GetLife(); float fLife = m_pLifeMeter->GetLife();
m_pPlayerStageStats->SetLifeRecordAt( fLife, STATSMAN->m_CurStageStats.m_fStepsSeconds ); m_pPlayerStageStats->SetLifeRecordAt( fLife, STATSMAN->m_CurStageStats.m_fStepsSeconds );
@@ -451,7 +451,8 @@ void Player::Load()
sound.SetParams( p ); sound.SetParams( p );
} }
SendComboMessage( m_pPlayerStageStats->m_iCurCombo, m_pPlayerStageStats->m_iCurMissCombo ); if( m_pPlayerStageStats )
SendComboMessage( m_pPlayerStageStats->m_iCurCombo, m_pPlayerStageStats->m_iCurMissCombo );
} }
void Player::SendComboMessage( int iOldCombo, int iOldMissCombo ) void Player::SendComboMessage( int iOldCombo, int iOldMissCombo )