1
0
Fork 0

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.
pull/12954/head
Peter Nelson 2024-09-19 18:09:23 +01:00 committed by Peter Nelson
parent 719d063bd4
commit 6e940af08d
1 changed files with 3 additions and 2 deletions

View File

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