From e13bd85d5baa3d0ccb7af60b1d6042477d7506f8 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 1 Mar 2006 22:06:31 +0000 Subject: [PATCH] don't assert if no rows enabled (editor help screen) --- stepmania/src/ScreenOptions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index f137a856dc..cc1ae9957b 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -950,6 +950,10 @@ void ScreenOptions::StoreFocus( PlayerNumber pn ) RString ScreenOptions::GetNextScreenForSelection( PlayerNumber pn ) const { int iCurRow = this->GetCurrentRow( pn ); + + if( iCurRow == -1 ) + return RString(); + ASSERT( iCurRow >= 0 && iCurRow < (int)m_pRows.size() ); const OptionRow *pRow = m_pRows[iCurRow];