fix crash

This commit is contained in:
Glenn Maynard
2005-04-28 05:08:15 +00:00
parent 851e8f27e6
commit 3af5336af7
+1 -1
View File
@@ -1587,7 +1587,7 @@ void Player::FadeToFail()
bool Player::IsPlayingBeginner() const bool Player::IsPlayingBeginner() const
{ {
if( !m_pPlayerStageStats->vpPossibleSteps.empty() ) if( m_pPlayerStageStats != NULL && !m_pPlayerStageStats->vpPossibleSteps.empty() )
{ {
Steps *pSteps = m_pPlayerStageStats->vpPossibleSteps[0]; Steps *pSteps = m_pPlayerStageStats->vpPossibleSteps[0];
return pSteps->GetDifficulty() == DIFFICULTY_BEGINNER; return pSteps->GetDifficulty() == DIFFICULTY_BEGINNER;