From f5794f47f711f76ce16037c3de0044b2576293ec Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 7 Aug 2003 02:35:08 +0000 Subject: [PATCH] HACK: invalidates currenly selected song if its a longversion or marathon and after clearing user doesn't have enough songs left to play it again (previous behavior was it would select the first group heading if they were on, and the stage counter was messed up) (if group headings were off, it would work fine previously, should still work fine) --- stepmania/src/MusicWheel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index b6d0832a41..91624293be 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -167,6 +167,11 @@ MusicWheel::MusicWheel() for( int so=0; som_pCurSong != NULL && SongManager::GetNumStagesForSong( GAMESTATE->m_pCurSong ) + GAMESTATE->m_iCurrentStageIndex > PREFSMAN->m_iNumArcadeStages) + GAMESTATE->m_pCurSong = NULL; + // If there is no currently selected song, select one. if( GAMESTATE->m_pCurSong == NULL ) {