Mercurial > hg > openttd
changeset 16867:b7a2b1958d0e draft
(svn r21601) -Fix [FS#4323]: company league table used stats from two quarters ago instead of last quarter
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 22 Dec 2010 19:52:23 +0000 |
parents | 4be591526692 |
children | 6f39950083d8 |
files | src/graph_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1160,7 +1160,7 @@ /** Sort the company league by performance history */ static int CDECL PerformanceSorter(const Company * const *c1, const Company * const *c2) { - return (*c2)->old_economy[1].performance_history - (*c1)->old_economy[1].performance_history; + return (*c2)->old_economy[0].performance_history - (*c1)->old_economy[0].performance_history; } public: @@ -1201,7 +1201,7 @@ SetDParam(0, c->index); SetDParam(1, c->index); - SetDParam(2, GetPerformanceTitleFromValue(c->old_economy[1].performance_history)); + SetDParam(2, GetPerformanceTitleFromValue(c->old_economy[0].performance_history)); DrawString(text_left, text_right, y, STR_COMPANY_LEAGUE_COMPANY_NAME); y += FONT_HEIGHT_NORMAL; }