fix possibly uninitialized variable

This commit is contained in:
Chris Danford
2004-05-07 07:21:53 +00:00
parent 9c1a5f6957
commit 76d6066db6
+1 -1
View File
@@ -181,7 +181,7 @@ Grade StageStats::GetGrade( PlayerNumber pn ) const
LOG->Trace( "GetGrade: Actual: %f, Possible: %f", Actual, Possible );
#define ROUNDING_ERROR 0.00001f
Grade grade;
Grade grade = GRADE_NO_DATA;
float fPercent = (Possible == 0) ? 0 : Actual / Possible;