From b6fd51b4fac5b1678a4a0b1fa04e95a6f94846fa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 19 Nov 2006 02:28:33 +0000 Subject: [PATCH] fix crashes --- stepmania/src/Player.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index b1fee54d18..c5cf719463 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -256,7 +256,7 @@ void Player::Init( // set initial life - if( m_pLifeMeter ) + if( m_pLifeMeter && m_pPlayerStageStats ) { float fLife = m_pLifeMeter->GetLife(); m_pPlayerStageStats->SetLifeRecordAt( fLife, STATSMAN->m_CurStageStats.m_fStepsSeconds ); @@ -451,7 +451,8 @@ void Player::Load() 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 )