Always generate smNoteData from parsed data, to ensure consistent string representation of stepchart

This commit is contained in:
Michael Votaw
2025-03-24 22:21:19 -07:00
committed by teejusb
parent 9a7cf4511f
commit 753dfec5db
+5 -1
View File
@@ -842,9 +842,13 @@ RString Steps::MinimizedChartString()
// StepMania will always generate the former since quarter notes are
// the smallest quantization.
// Instead of calling GetSMNoteData(), call NoteDataUtil::GetSMNoteDataString()
// to ensure that we have a consistent, valid stepchart representation.
RString smNoteData = "";
NoteData noteData;
this->GetNoteData(noteData);
NoteDataUtil::GetSMNoteDataString( noteData, smNoteData );
this->GetSMNoteData(smNoteData);
if( smNoteData == "")
{
return "";