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
+7 -3
View File
@@ -841,10 +841,14 @@ RString Steps::MinimizedChartString()
// 0000
// StepMania will always generate the former since quarter notes are
// the smallest quantization.
RString smNoteData = "";
this->GetSMNoteData(smNoteData);
// 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 );
if( smNoteData == "")
{
return "";