fixed crash in para because SelectModeChoies weren't filled out.

This commit is contained in:
Chris Danford
2002-09-30 17:44:31 +00:00
parent 40720267b5
commit 721cdc7250
2 changed files with 33 additions and 0 deletions
+32
View File
@@ -1117,6 +1117,38 @@ ModeChoice g_ModeChoices[] =
"real",
2
},
{
GAME_PARA,
PLAY_MODE_ARCADE,
STYLE_PARA_SINGLE,
DIFFICULTY_EASY,
"para",
1
},
{
GAME_PARA,
PLAY_MODE_ARCADE,
STYLE_PARA_SINGLE,
DIFFICULTY_EASY,
"easy",
1
},
{
GAME_PARA,
PLAY_MODE_ARCADE,
STYLE_PARA_SINGLE,
DIFFICULTY_MEDIUM,
"hard",
1
},
{
GAME_PARA,
PLAY_MODE_ARCADE,
STYLE_PARA_SINGLE,
DIFFICULTY_HARD,
"expert",
1
},
};
const int NUM_MODE_CHOICES = sizeof(g_ModeChoices) / sizeof(g_ModeChoices[0]);
+1
View File
@@ -205,6 +205,7 @@ void ScreenSelectMode::RefreshModeChoices()
int iNumSidesJoined = GAMESTATE->GetNumSidesJoined();
GAMEMAN->GetModesChoicesForGame( GAMESTATE->m_CurGame, m_aPossibleModeChoices );
ASSERT( m_aPossibleModeChoices.GetSize() > 0 );
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;