fix AV if no #DIFFICULTIESTOHIDE
This commit is contained in:
@@ -392,7 +392,8 @@ void Course::Save( CString sPath, bool bSavingCache )
|
|||||||
CString s;
|
CString s;
|
||||||
FOREACHS_CONST( CourseDifficulty, m_vDifficultiesToHide, cd )
|
FOREACHS_CONST( CourseDifficulty, m_vDifficultiesToHide, cd )
|
||||||
s += CourseDifficultyToString( *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 + ";" );
|
f.PutLine( "#DIFFICULTIESTOHIDE:" + s + ";" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user