From 6e940af08dadd77225c1a627fd1fb0d5c3ca13e0 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 19 Sep 2024 18:09:23 +0100 Subject: [PATCH] Fix #12952: Incorrect string parameters passed for social plugin titles. When no option is selected (i.e. during SetupSmallestSize), a different string parameter layout was used that did not match the visible layout. --- src/settings_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index fb5c08ec86..3ead59aa20 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -256,8 +256,9 @@ public: case WID_GO_SOCIAL_PLUGIN_TITLE: /* For SetupSmallestSize, use the longest string we have. */ if (this->current_index < 0) { - SetDParamStr(0, GetWidestPlugin(&SocialIntegrationPlugin::name)); - SetDParamStr(1, GetWidestPlugin(&SocialIntegrationPlugin::version)); + SetDParam(0, STR_GAME_OPTIONS_SOCIAL_PLUGIN_TITLE); + SetDParamStr(1, GetWidestPlugin(&SocialIntegrationPlugin::name)); + SetDParamStr(2, GetWidestPlugin(&SocialIntegrationPlugin::version)); break; }