fix AV is SourceSteps on edit, then change to song with no edits

This commit is contained in:
Chris Danford
2005-03-07 23:27:19 +00:00
parent c2b5b2779c
commit bf5d7435c4
+4
View File
@@ -343,6 +343,10 @@ void EditMenu::OnRowValueChanged( Row row )
GetSelectedSong()->GetSteps( v, GetSelectedStepsType(), DIFFICULTY_EDIT );
StepsUtil::SortStepsByDescription( v );
m_vpSourceSteps.insert( m_vpSourceSteps.end(), v.begin(), v.end() );
// if we don't have any edits, pad with NULL so that we have one slot for every difficulty
if( v.empty() )
m_vpSteps.push_back( NULL );
}
else
{