fix AV when setting selection to the current song

This commit is contained in:
Chris Danford
2005-03-05 23:13:00 +00:00
parent c9ec1c16b0
commit 547e827a86
+1 -1
View File
@@ -127,7 +127,7 @@ EditMenu::EditMenu()
vector<Steps*>::const_iterator iter = find( m_vpSteps.begin(), m_vpSteps.end(), GAMESTATE->m_pCurSteps[PLAYER_1] );
if( iter != m_vpSteps.end() )
{
m_iSelection[ROW_STEPS] = m_vpSteps.begin() - iter;
m_iSelection[ROW_STEPS] = iter - m_vpSteps.begin();
OnRowValueChanged( ROW_STEPS );
}
}