diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index 450306f1d9..76efa90d42 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -245,6 +245,8 @@ bool NotesWriterSM::Write( RString sPath, const Song &out, bool bSavingCache ) RString sTag = GetSMNotesTag( out, *pSteps, bSavingCache ); f.PutLine( sTag ); } + if( !f.Flush() ) + return false; return true; }