fix AV if no #DIFFICULTIESTOHIDE

This commit is contained in:
Chris Danford
2005-03-10 20:53:07 +00:00
parent 899de39e84
commit 5d67acd9f6
+2 -1
View File
@@ -392,7 +392,8 @@ void Course::Save( CString sPath, bool bSavingCache )
CString s;
FOREACHS_CONST( CourseDifficulty, m_vDifficultiesToHide, cd )
s += CourseDifficultyToString( *cd ) + ',';
s.erase( s.end()-1 ); // erase last ','
if( !s.empty() )
s.erase( s.end()-1 ); // erase last ','
f.PutLine( "#DIFFICULTIESTOHIDE:" + s + ";" );
}