summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graph_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 926cb7ea4..a8e0d22ab 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -1100,7 +1100,7 @@ public:
FOR_ALL_COMPANIES(c) {
SetDParam(0, c->index);
SetDParam(1, c->index);
- SetDParam(2, widest_title);
+ SetDParam(2, _performance_titles[widest_title]);
widest_width = max(widest_width, GetStringBoundingBox(STR_COMPANY_LEAGUE_COMPANY_NAME).width);
}