fix crash

This commit is contained in:
Glenn Maynard
2005-09-03 00:38:42 +00:00
parent 5451d5c3a2
commit ddb6b7e6bf
+3 -3
View File
@@ -30,15 +30,15 @@ ScreenSelectGroup::ScreenSelectGroup( CString sClassName ) : ScreenWithMenuEleme
void ScreenSelectGroup::Init() void ScreenSelectGroup::Init()
{ {
ScreenWithMenuElements::Init();
if( !PREFSMAN->m_bShowSelectGroup ) if( !PREFSMAN->m_bShowSelectGroup )
{ {
GAMESTATE->m_sPreferredSongGroup.Set( GROUP_ALL ); GAMESTATE->m_sPreferredSongGroup.Set( GROUP_ALL );
HandleScreenMessage( SM_GoToNextScreen ); PostScreenMessage( SM_GoToNextScreen, 0 );
return; return;
} }
ScreenWithMenuElements::Init();
vector<Song*> aAllSongs; vector<Song*> aAllSongs;
SONGMAN->GetSongs( aAllSongs ); SONGMAN->GetSongs( aAllSongs );