Fix course mode crashing.

This commit is contained in:
Glenn Maynard
2003-09-04 07:21:31 +00:00
parent d7961c86df
commit 9219322406
+5 -2
View File
@@ -69,11 +69,14 @@ Background::Background()
bool bOneOrMoreChars = false; bool bOneOrMoreChars = false;
bool bShowingBeginnerHelper = false; bool bShowingBeginnerHelper = false;
for( int p=0; p<NUM_PLAYERS; p++ ) for( int p=0; p<NUM_PLAYERS; p++ )
if( GAMESTATE->IsHumanPlayer(p) )
{ {
if( !GAMESTATE->IsHumanPlayer(p) )
continue;
bOneOrMoreChars = true; bOneOrMoreChars = true;
// Disable dancing characters if BH will be showing. // Disable dancing characters if BH will be showing.
if( (PREFSMAN->m_bShowBeginnerHelper) && BeginnerHelper::CanUse() && (GAMESTATE->m_pCurNotes[p]->GetDifficulty() == DIFFICULTY_BEGINNER ) ) if( PREFSMAN->m_bShowBeginnerHelper && BeginnerHelper::CanUse() &&
GAMESTATE->m_pCurNotes[p] && GAMESTATE->m_pCurNotes[p]->GetDifficulty() == DIFFICULTY_BEGINNER )
bShowingBeginnerHelper = true; bShowingBeginnerHelper = true;
} }