diff --git a/stepmania/src/ScreenSelectGroup.cpp b/stepmania/src/ScreenSelectGroup.cpp index 332f083de4..061e574ae2 100644 --- a/stepmania/src/ScreenSelectGroup.cpp +++ b/stepmania/src/ScreenSelectGroup.cpp @@ -94,14 +94,14 @@ ScreenSelectGroup::ScreenSelectGroup() asGroupNames.insert(asGroupNames.begin(), "ALL MUSIC" ); // Add songs to the MusicList. - for( unsigned j=0; j < asGroupNames.size(); j++ ) /* for each group */ + for( unsigned g=0; g < asGroupNames.size(); g++ ) /* for each group */ { CArray aSongsInGroup; /* find all songs */ for( i=0; im_sGroupName != asGroupNames[j] ) + if( g != 0 && aAllSongs[i]->m_sGroupName != asGroupNames[g] ) continue; aSongsInGroup.push_back( aAllSongs[i] );