fix "auto selection of last edited steps after saving in editor"

This commit is contained in:
Chris Danford
2003-10-31 09:42:22 +00:00
parent 734d7d5854
commit 9ab281f982
2 changed files with 29 additions and 14 deletions
+6 -4
View File
@@ -125,17 +125,19 @@ EditMenu::EditMenu()
OnRowValueChanged( ROW_SONG );
// Select the current StepsType and difficulty if any
if( GAMESTATE->m_pCurNotes )
if( GAMESTATE->m_pCurNotes && GAMESTATE->m_pCurNotes[PLAYER_1] )
{
for( i=0; i<m_StepsTypes.size(); i++ )
{
if( m_StepsTypes[i] == GAMESTATE->m_pCurNotes[PLAYER_1]->m_StepsType )
{
m_iSelection[ROW_NOTES_TYPE] = i;
OnRowValueChanged( ROW_NOTES_TYPE );
m_iSelection[ROW_DIFFICULTY] = GAMESTATE->m_pCurNotes[PLAYER_1]->GetDifficulty();
OnRowValueChanged( ROW_DIFFICULTY );
break;
}
m_iSelection[ROW_DIFFICULTY] = GAMESTATE->m_pCurNotes[PLAYER_1]->GetDifficulty();
OnRowValueChanged( ROW_DIFFICULTY );
}
}
}