From dc6e6f0d2113394f5352efbb2848a6af188db228 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 8 Jan 2005 00:16:11 +0000 Subject: [PATCH] fix Ini saving --- stepmania/src/IniFile.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/IniFile.cpp b/stepmania/src/IniFile.cpp index 063daa6c17..bbf5c9ec11 100644 --- a/stepmania/src/IniFile.cpp +++ b/stepmania/src/IniFile.cpp @@ -88,9 +88,11 @@ bool IniFile::WriteFile( RageFileBasic &f ) const FOREACH_CONST_Attr( pKey, pAttr ) { - f.PutLine( ssprintf("%s=%s", pAttr->m_sName.c_str(), pAttr->m_sValue.c_str()) ); - m_sError = f.GetError(); - return false; + if( f.PutLine( ssprintf("%s=%s", pAttr->m_sName.c_str(), pAttr->m_sValue.c_str()) ) == -1 ) + { + m_sError = f.GetError(); + return false; + } } if( f.PutLine( "" ) == -1 )