fix Ini saving

This commit is contained in:
Chris Danford
2005-01-08 00:16:11 +00:00
parent d8ba4c42a8
commit dc6e6f0d21
+3 -1
View File
@@ -88,10 +88,12 @@ 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()) );
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 )
{