mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 19:09:09 +00:00
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.
This commit is contained in:
@@ -256,8 +256,9 @@ public:
|
|||||||
case WID_GO_SOCIAL_PLUGIN_TITLE:
|
case WID_GO_SOCIAL_PLUGIN_TITLE:
|
||||||
/* For SetupSmallestSize, use the longest string we have. */
|
/* For SetupSmallestSize, use the longest string we have. */
|
||||||
if (this->current_index < 0) {
|
if (this->current_index < 0) {
|
||||||
SetDParamStr(0, GetWidestPlugin(&SocialIntegrationPlugin::name));
|
SetDParam(0, STR_GAME_OPTIONS_SOCIAL_PLUGIN_TITLE);
|
||||||
SetDParamStr(1, GetWidestPlugin(&SocialIntegrationPlugin::version));
|
SetDParamStr(1, GetWidestPlugin(&SocialIntegrationPlugin::name));
|
||||||
|
SetDParamStr(2, GetWidestPlugin(&SocialIntegrationPlugin::version));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user