fix crash pressing left/right when on "EXIT"

This commit is contained in:
Glenn Maynard
2003-12-01 21:44:33 +00:00
parent b017c59d10
commit fe42979b79
+2 -2
View File
@@ -814,7 +814,7 @@ void ScreenOptions::ChangeValue( PlayerNumber pn, int iDelta, bool Repeat )
int iCurRow = m_iCurrentRow[pn];
OptionRow &row = m_OptionRow[iCurRow];
const int iNumOptions = row.choices.size();
const int iNumOptions = (iCurRow == m_iNumOptionRows)? 1: row.choices.size();
if( PREFSMAN->m_bArcadeOptionsNavigation )
{
/* If START is being pressed, and arcade nav is on, then we're holding left/right
@@ -823,7 +823,7 @@ void ScreenOptions::ChangeValue( PlayerNumber pn, int iDelta, bool Repeat )
INPUTMAPPER->IsButtonDown( MenuInput(pn, MENU_BUTTON_START) ) )
return;
if( iCurRow == m_iNumOptionRows || iNumOptions <= 1 ) // 1 or 0
if( iNumOptions <= 1 ) // 1 or 0
{
Move( pn, iDelta, Repeat );
return;