From 65bc007ec64adfe99ac425eff8f949a7430d7d0b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Feb 2007 00:48:07 +0000 Subject: [PATCH] fix error check --- stepmania/src/NotesWriterSM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/NotesWriterSM.cpp b/stepmania/src/NotesWriterSM.cpp index 76efa90d42..04fa907f69 100644 --- a/stepmania/src/NotesWriterSM.cpp +++ b/stepmania/src/NotesWriterSM.cpp @@ -245,7 +245,7 @@ bool NotesWriterSM::Write( RString sPath, const Song &out, bool bSavingCache ) RString sTag = GetSMNotesTag( out, *pSteps, bSavingCache ); f.PutLine( sTag ); } - if( !f.Flush() ) + if( f.Flush() == -1 ) return false; return true;