diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index b0cbef4ccf..6de3e06f13 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -450,17 +450,15 @@ void OptionRow::AfterImportOptions() case SELECT_ONE: { /* Make sure the row actually has a selection. */ - bool bHasASelection = false; - for( unsigned i=0; im_Def.m_selectType ) { case SELECT_ONE: - m_iChoiceInRowWithFocus[p] = GetOneSelection(p, true); - if( m_iChoiceInRowWithFocus[p] == -1 ) - m_iChoiceInRowWithFocus[p] = 0; + { + /* Make sure the row actually has a selection. */ + int iSelection = GetOneSelection(p, true) != -1; + if( iSelection == -1 ) + { + ASSERT( !m_vbSelected[p].empty() ); + m_vbSelected[p][0] = true; + iSelection = 0; + } + + m_iChoiceInRowWithFocus[p] = iSelection; // focus on the selection we just set break; + } case SELECT_MULTIPLE: case SELECT_NONE: m_iChoiceInRowWithFocus[p] = 0;