remove the record from the vector, otherwise we end up with some invalid data because the vector's size doesn't decrese.
This commit is contained in:
@@ -512,6 +512,7 @@ static void DeleteDuplicateSteps( Song *song, vector<Steps*> &vSteps )
|
|||||||
song->GetSongDir().c_str(), s1->GetDescription().c_str(), s1->GetMeter() );
|
song->GetSongDir().c_str(), s1->GetDescription().c_str(), s1->GetMeter() );
|
||||||
|
|
||||||
song->RemoveNotes(s2);
|
song->RemoveNotes(s2);
|
||||||
|
vSteps.erase(vSteps.begin()+j);
|
||||||
--j;
|
--j;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user