summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-08-15 16:19:54 +0000
committerdarkvater <darkvater@openttd.org>2004-08-15 16:19:54 +0000
commit69b09ef302fd9c9514203292e5c664f032a85a7d (patch)
tree6daca740d3fa000679c1cf59f758b29bf41f91b2
parenta16f242808ba4a0d95650ed0c2571af942a4f796 (diff)
downloadopenttd-69b09ef302fd9c9514203292e5c664f032a85a7d.tar.xz
(svn r58) -Fix stupid bug in company league window if non-player is first
-rw-r--r--graph_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/graph_gui.c b/graph_gui.c
index 2e3c13e39..fcb6f81d8 100644
--- a/graph_gui.c
+++ b/graph_gui.c
@@ -830,7 +830,7 @@ static void CompanyLeagueWndProc(Window *w, WindowEvent *e)
that because there is another param after it.
So we'll just shift the rating one back if player is AI and all is fine
*/
- SET_DPARAM16((IS_HUMAN_PLAYER(i) ? 5 : 4), GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
+ SET_DPARAM16((IS_HUMAN_PLAYER(p->index) ? 5 : 4), GetPerformanceTitleFromValue(p->old_economy[1].performance_history));
DrawString(2, 15 + i * 10, i == 0 ? STR_7054 : STR_7055, 0);
DrawPlayerIcon(p->index, 27, 16 + i * 10);