diff options
author | rubidium <rubidium@openttd.org> | 2010-12-22 19:52:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-22 19:52:23 +0000 |
commit | fba9670a62db1b418246017583559b7272bc8530 (patch) | |
tree | 0a460e2e43349a96a6f924f546cbed3ef76ecc7f | |
parent | 08c6b99294c150a408ea570bb7e046006ca8d7dd (diff) | |
download | openttd-fba9670a62db1b418246017583559b7272bc8530.tar.xz |
(svn r21601) -Fix [FS#4323]: company league table used stats from two quarters ago instead of last quarter
-rw-r--r-- | src/graph_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index e5389a51a..eac0d2dcd 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1160,7 +1160,7 @@ private: /** 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 @@ public: 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; } |