From f88111380ab1e04649e43e84b311f8f811b926c2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 3 Feb 2007 00:54:28 +0000 Subject: [PATCH] If writing the SM file fails, don't write cache, either. --- stepmania/src/Song.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index b7a04b2132..d1e339bf74 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -784,7 +784,8 @@ void Song::Save() TranslateTitles(); /* Save the new files. These calls make backups on their own. */ - SaveToSMFile( GetSongFilePath(), false ); + if( !SaveToSMFile(GetSongFilePath(), false) ) + return; SaveToDWIFile(); SaveToCacheFile();