simplify the check for a valid StepsType in MusicWheel (no longer needs to juggle bools)

This commit is contained in:
AJ Kelly
2010-06-03 23:41:24 -05:00
parent 3254bfe804
commit 9bc4afc02a
+2 -4
View File
@@ -389,15 +389,13 @@ void MusicWheel::GetSongList( vector<Song*> &arraySongs, SortOrder so )
// http://ssc.ajworld.net/sm-ssc/bugtracker/view.php?id=147
set<StepsType> vStepsType;
SongUtil::GetPlayableStepsTypes( pSong, vStepsType );
bool bHasFoundStepsType = false;
FOREACHS( StepsType, vStepsType, st )
{
if(pSong->HasStepsType(*st) && !bHasFoundStepsType)
if(pSong->HasStepsType(*st))
{
arraySongs.push_back( pSong );
bHasFoundStepsType = true;
continue;
break;
}
}
}