ALL MUSIC must come first; fix infinite looping on init

This commit is contained in:
Glenn Maynard
2002-11-11 19:02:33 +00:00
parent bdf364a5aa
commit f8027f16c3
+2 -2
View File
@@ -90,9 +90,9 @@ ScreenSelectGroup::ScreenSelectGroup()
// copy group names into a vector
std::vector<CString> asGroupNames;
for( std::map<CString, CString>::const_iterator iter = mapGroupNames.begin(); iter != mapGroupNames.end(); ++i )
asGroupNames.push_back( iter->first );
asGroupNames.push_back( "ALL MUSIC" ); // "ALL MUSIC" is a special group
for( std::map<CString, CString>::const_iterator iter = mapGroupNames.begin(); iter != mapGroupNames.end(); ++iter )
asGroupNames.push_back( iter->first );
// Add songs to the MusicList.
for( unsigned g=0; g < asGroupNames.size(); g++ ) /* for each group */