From b669b727025cb5b8a7a0d87ff782ac36028d64cc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 19 Jan 2006 00:24:51 +0000 Subject: [PATCH] reset m_iChoiceInRowWithFocus in ChoicesChanged --- stepmania/src/OptionRow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index 38b7226177..1d64c86abb 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -202,6 +202,10 @@ void OptionRow::ChoicesChanged() m_vbSelected[p].insert( m_vbSelected[p].begin(), false ); } + /* When choices change, the old focus position is meaningless; reset it. */ + FOREACH_PlayerNumber( p ) + m_iChoiceInRowWithFocus[p] = 0; + InitText(); }