From 572a914f9f58b80a747501a1bd24ebde1ec8b55c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 25 Feb 2004 23:56:33 +0000 Subject: [PATCH] tolerate no default selection --- stepmania/src/ScreenOptions.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 1798987d72..63a3a50379 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -155,25 +155,35 @@ void ScreenOptions::Init( InputMode im, OptionRowData OptionRows[], int iNumOpti this->ImportOptions(); - // Make all selections the same if bOneChoiceForAllPlayers { for( int r=0; rm_vbSelected[0]; - } CHECKPOINT_M( ssprintf("row %i: %s", r, Row.m_RowDef.name.c_str()) ); for( int p=0; pWarn( "Options menu \"%s\" row %i has no selection", m_sName.c_str(), i ); + Row.m_vbSelected[p][0] = true; + } + Row.m_iChoiceWithFocus[p] = Row.GetOneSelection( (PlayerNumber)p); // focus on the only selected choice + } } }