diff --git a/stepmania/src/StageStats.cpp b/stepmania/src/StageStats.cpp index 467f5b63af..3f231178bc 100644 --- a/stepmania/src/StageStats.cpp +++ b/stepmania/src/StageStats.cpp @@ -210,22 +210,14 @@ void StageStats::AssertValid( PlayerNumber pn ) const int StageStats::GetAverageMeter( PlayerNumber pn ) const { int iTotalMeter = 0; - int iTotalCount = 0; ASSERT( vpSongs.size() == m_player[pn].vpSteps.size() ); for( unsigned i=0; iGetMeter(); - - iTotalMeter += iMeter; - iTotalCount += iWeight; + const Steps* pSteps = m_player[pn].vpSteps[i]; + iTotalMeter += pSteps->GetMeter(); } - return iTotalMeter / iTotalCount; // round down + return iTotalMeter / vpSongs.size(); // round down } void StageStats::AddStats( const StageStats& other )