fix possible event mode bug (hopefully)

This commit is contained in:
Andrew Wong
2003-08-08 20:37:17 +00:00
parent f14bad2125
commit c329db132c
+3
View File
@@ -169,8 +169,11 @@ MusicWheel::MusicWheel()
// HACK: invalidate currently selected song in the case that it
// cannot be played due to lack of stages remaining
// checking for event mode shouldn't be necessary here
// but someone mentioned it does it sometimes.
if( GAMESTATE->m_pCurSong != NULL &&
SongManager::GetNumStagesForSong( GAMESTATE->m_pCurSong ) + GAMESTATE->m_iCurrentStageIndex > PREFSMAN->m_iNumArcadeStages
&& !PREFSMAN->m_bEventMode
&& !GAMESTATE->IsExtraStage() && !GAMESTATE->IsExtraStage2() )
GAMESTATE->m_pCurSong = NULL;