fix crash

This commit is contained in:
Glenn Maynard
2006-01-15 00:05:22 +00:00
parent 2c6e28f46d
commit 4a09761d19
+2 -1
View File
@@ -140,7 +140,8 @@ void ScreenOptionsMaster::BeginFadingOut()
int iChoice = row.GetChoiceInRowWithFocus( GAMESTATE->m_MasterPlayerNumber );
if( row.GetFirstItemGoesDown() )
iChoice--;
if( iChoice != -1 ) // not the "goes down" item
// not the "goes down" item
if( iChoice != -1 && iCurRow < (int) m_OptionRowHandlers.size() )
{
OptionRowHandler *pHand = m_OptionRowHandlers[iCurRow];
if( pHand != NULL )