From 0c8e460cddf0221ccc5d52f628edb3664a739db0 Mon Sep 17 00:00:00 2001 From: glx22 Date: Tue, 18 Mar 2025 17:31:09 +0100 Subject: [PATCH] Fix #13843, 015c081c: Don't discard GetString() result --- src/graph_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index a056186edb..0bae50c411 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1645,7 +1645,7 @@ struct IndustryProductionGraphWindow : BaseGraphWindow { std::string GetWidgetString(WidgetID widget, StringID stringid) const override { - if (widget == WID_GRAPH_CAPTION) GetString(STR_GRAPH_INDUSTRY_PRODUCTION_CAPTION, this->window_number); + if (widget == WID_GRAPH_CAPTION) return GetString(STR_GRAPH_INDUSTRY_PRODUCTION_CAPTION, this->window_number); return this->Window::GetWidgetString(widget, stringid); }