1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

Fix #13843, 015c081c: Don't discard GetString() result (#13844)

This commit is contained in:
Loïc Guilloux
2025-03-18 18:15:40 +01:00
committed by GitHub
parent 17f7d0950e
commit e55f54ce08

View File

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