# HG changeset patch # User rubidium # Date 2009-09-03 10:50:14 # Node ID 03f8a24bb6cd40f0be106e45c066d8db39c69424 # Parent d3cce2f3dd52aee6e879e08504dd78dbd37cd0f9 (svn r17400) -Fix [FS#3172] (r17380): total line of performance rating was calculated wrong diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1124,8 +1124,8 @@ struct PerformanceRatingDetailWindow : W /* SCORE_TOTAL has his own rules ;) */ if (score_type == SCORE_TOTAL) { - for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) needed += _score_info[i].needed; - score = SCORE_MAX; + for (ScoreID i = SCORE_BEGIN; i < SCORE_END; i++) score += _score_info[i].score; + needed = SCORE_MAX; } DrawString(7, 107, r.top + 6, STR_PERFORMANCE_DETAIL_VEHICLES + score_type);