From 4a09761d190ac286bf08aecb321c54bcd8e1aa23 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 15 Jan 2006 00:05:22 +0000 Subject: [PATCH] fix crash --- stepmania/src/ScreenOptionsMaster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptionsMaster.cpp b/stepmania/src/ScreenOptionsMaster.cpp index af524b36bd..d395edccc5 100644 --- a/stepmania/src/ScreenOptionsMaster.cpp +++ b/stepmania/src/ScreenOptionsMaster.cpp @@ -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 )