diff --git a/src/MusicWheel.cpp b/src/MusicWheel.cpp index e1c1bd4760..64e7650185 100644 --- a/src/MusicWheel.cpp +++ b/src/MusicWheel.cpp @@ -1574,6 +1574,7 @@ Song *MusicWheel::GetPreferredSelectionForRandomOrPortal() #define NUM_PROBES 1000 for( int i=0; iHasStepsTypeAndDifficulty(st,*d) ) - goto try_next; - return wid[iSelection]->m_pSong; -try_next: - ; + { + isValid = false; + break; + } + } + + if (isValid) + { + return wid[iSelection]->m_pSong; + } } LOG->Warn( "Couldn't find any songs" ); return wid[0]->m_pSong;