(svn r58) -Fix stupid bug in company league window if non-player is first
authordarkvater
Sun, 15 Aug 2004 16:19:54 +0000
changeset 57 8e7283026637
parent 56 c7a3d547b95b
child 58 b9fdcc9b5c90
(svn r58) -Fix stupid bug in company league window if non-player is first
graph_gui.c
--- a/graph_gui.c	Sun Aug 15 16:08:32 2004 +0000
+++ b/graph_gui.c	Sun Aug 15 16:19:54 2004 +0000
@@ -830,7 +830,7 @@
 					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);