fix reading grades from a18

This commit is contained in:
Glenn Maynard
2004-05-21 06:24:21 +00:00
parent c31cd9d287
commit 714ab3c464
+5 -1
View File
@@ -73,7 +73,11 @@ void HighScore::LoadFromNode( const XNode* pNode )
{
CString sGrade;
(*child)->GetValue( sGrade );
grade = StringToGrade( sGrade );
/* Pre-a19 compatibility; remove eventually: */
if( IsAnInt(sGrade) )
grade = (Grade) atoi( sGrade );
else
grade = StringToGrade( sGrade );
}
else if( (*child)->name == "Score" ) (*child)->GetValue( iScore );
else if( (*child)->name == "PercentDP" ) (*child)->GetValue( fPercentDP );