From e55f54ce08813a9ef518d8ed7abfc9dc658a41e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Tue, 18 Mar 2025 18:15:40 +0100 Subject: [PATCH] Fix #13843, 015c081c: Don't discard GetString() result (#13844) --- 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); }