From 06b19345a9ec77c68a9d06bcc5dc06063b85d46e Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 22 Feb 2006 18:12:45 +0000 Subject: [PATCH] fix NextRow markers accumulate when a row is reloaded --- stepmania/src/OptionRow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/OptionRow.cpp b/stepmania/src/OptionRow.cpp index eda5ed2416..6ee7bb1cbe 100644 --- a/stepmania/src/OptionRow.cpp +++ b/stepmania/src/OptionRow.cpp @@ -183,6 +183,14 @@ void OptionRow::ChoicesChanged() { ASSERT( !m_pHand->m_Def.m_vsChoices.empty() ); + // Remove the NextRow marker before reloading choices + if( m_pHand->m_Def.m_vsChoices[0] == NEXT_ROW_NAME ) + { + m_pHand->m_Def.m_vsChoices.erase( m_pHand->m_Def.m_vsChoices.begin() ); + FOREACH_PlayerNumber( p ) + m_vbSelected[p].erase( m_vbSelected[p].begin() ); + } + FOREACH_PlayerNumber( p ) { vector &vbSelected = m_vbSelected[p];