From de930d29001d5592964990875c52e0b84f5aae68 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Feb 2007 00:30:39 +0000 Subject: [PATCH] error check --- stepmania/src/NotesWriterSM.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }