don't call HasScreen for a NEXT_ROW item

This commit is contained in:
Chris Danford
2005-04-27 05:57:58 +00:00
parent aed3b049ae
commit b54e78c433
+5 -2
View File
@@ -141,8 +141,11 @@ void ScreenOptionsMaster::BeginFadingOut()
int iChoice = row.GetChoiceInRowWithFocus( GAMESTATE->m_MasterPlayerNumber );
if( row.GetFirstItemGoesDown() )
iChoice--;
OptionRowHandler *pHand = OptionRowHandlers[iCurRow];
m_bExportWillSetANewScreen = pHand->HasScreen( iChoice );
if( iChoice != -1 ) // not the "goes down" item
{
OptionRowHandler *pHand = OptionRowHandlers[iCurRow];
m_bExportWillSetANewScreen = pHand->HasScreen( iChoice );
}
}
// If options set a NextScreen or one is specified in metrics, then fade out