I should be using + instead of += apparently.

Yay for ##c++ for pointing this out.
This commit is contained in:
Jason Felds
2013-04-30 20:36:04 -04:00
parent f265465096
commit 3171f15df2
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ int PlayerStageStats::GetLessonScoreActual() const
int PlayerStageStats::GetLessonScoreNeeded() const
{
float score = std::accumulate(m_vpPossibleSteps.begin(), m_vpPossibleSteps.end(), 0.f,
[](float total, Steps const *steps) { return total += steps->GetRadarValues(PLAYER_1).m_Values.v.fNumTapsAndHolds; });
[](float total, Steps const *steps) { return total + steps->GetRadarValues(PLAYER_1).m_Values.v.fNumTapsAndHolds; });
return lrintf( score * LESSON_PASS_THRESHOLD );
}