Fix crash in ScreenSelectGame

This commit is contained in:
Chris Danford
2003-03-17 00:49:35 +00:00
parent 53233025d7
commit 1ea580c0c1
+2 -3
View File
@@ -42,16 +42,15 @@ ScreenSelectGame::ScreenSelectGame() :
vector<Game> aGames;
GAMEMAN->GetEnabledGames( aGames );
m_OptionRow[SG_GAME].choices.clear();
g_SelectGameLines[SG_GAME].choices.clear();
for( unsigned i=0; i<aGames.size(); i++ )
{
Game game = aGames[i];
CString sGameName = GAMEMAN->GetGameDefForGame(game)->m_szName;
sGameName.MakeUpper();
m_OptionRow[SG_GAME].choices.push_back( sGameName );
g_SelectGameLines[SG_GAME].choices.push_back( sGameName );
}
Init(
INPUTMODE_BOTH,
g_SelectGameLines,