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 )