diff --git a/src/MusicWheel.cpp b/src/MusicWheel.cpp index 3f2bba4b30..9e04a454cc 100644 --- a/src/MusicWheel.cpp +++ b/src/MusicWheel.cpp @@ -334,6 +334,15 @@ void MusicWheel::GetSongList( vector &arraySongs, SortOrder so ) case SORT_POPULARITY: SONGMAN->GetPopularSongs(); break; + case SORT_GROUP: + // if we're not using sections with a preferred song group, and there + // is a group to load, only load those songs. -aj + if(GAMESTATE->m_sPreferredSongGroup != GROUP_ALL && !USE_SECTIONS_WITH_PREFERRED_GROUP ) + { + apAllSongs = SONGMAN->GetSongs(GAMESTATE->m_sPreferredSongGroup); + break; + } + // otherwise fall through default: apAllSongs = SONGMAN->GetAllSongs(); break;