[ScreenEdit] Fixed a crash when hitting Enter in the F1 help menu.

This commit is contained in:
AJ Kelly
2011-07-02 18:54:07 -05:00
parent ca4080f9fd
commit 544f927932
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -808,7 +808,17 @@ void ScreenOptions::MenuStart( const InputEventPlus &input )
void ScreenOptions::ProcessMenuStart( const InputEventPlus &input )
{
PlayerNumber pn = input.pn;
int iCurRow = m_iCurrentRow[pn];
if( iCurRow < 0 )
{
// this shouldn't be happening, but it is, so we need to bail out. -aj
SCREENMAN->PlayStartSound();
this->BeginFadingOut();
return;
}
OptionRow &row = *m_pRows[iCurRow];
if( m_OptionsNavigation == NAV_THREE_KEY_MENU && row.GetRowType() != OptionRow::RowType_Exit )