From aed3b049ae96c5d03577f6bf264c71bf671dcd1a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 27 Apr 2005 05:40:24 +0000 Subject: [PATCH] fix off by 1 when calling HasScreen --- stepmania/src/ScreenOptionsMaster.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptionsMaster.cpp b/stepmania/src/ScreenOptionsMaster.cpp index ca632fae3c..4a2ebe78bf 100644 --- a/stepmania/src/ScreenOptionsMaster.cpp +++ b/stepmania/src/ScreenOptionsMaster.cpp @@ -138,7 +138,9 @@ void ScreenOptionsMaster::BeginFadingOut() if( row.GetRowType() != OptionRow::ROW_EXIT ) { - const int iChoice = row.GetChoiceInRowWithFocus( GAMESTATE->m_MasterPlayerNumber ); + int iChoice = row.GetChoiceInRowWithFocus( GAMESTATE->m_MasterPlayerNumber ); + if( row.GetFirstItemGoesDown() ) + iChoice--; OptionRowHandler *pHand = OptionRowHandlers[iCurRow]; m_bExportWillSetANewScreen = pHand->HasScreen( iChoice ); }