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); }