From f8027f16c35ef08efb056e392d8d4790b6b06fa8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 11 Nov 2002 19:02:33 +0000 Subject: [PATCH] ALL MUSIC must come first; fix infinite looping on init --- stepmania/src/ScreenSelectGroup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/ScreenSelectGroup.cpp b/stepmania/src/ScreenSelectGroup.cpp index 168b2a3ad9..cefc307f33 100644 --- a/stepmania/src/ScreenSelectGroup.cpp +++ b/stepmania/src/ScreenSelectGroup.cpp @@ -90,9 +90,9 @@ ScreenSelectGroup::ScreenSelectGroup() // copy group names into a vector std::vector asGroupNames; - for( std::map::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::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 */