From 40a4a993de0ec2431b893fdeef680ebe4bc78bc4 Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 4 Aug 2021 20:47:13 +0100 Subject: [PATCH] Fix #15170: Plugin: incorrect label text alignment (#15175) Initialise CustomWidgetDesc::TextAlign. --- distribution/changelog.txt | 1 + src/openrct2-ui/scripting/CustomWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index fc9446032b..53862f3865 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -8,6 +8,7 @@ - Fix: [#15096] Crash when placing entrances in the scenario editor near the map corner. - Fix: [#15142] ToonTowner's mine roofs were moved into the pirate theme scenery group instead of the mine theme scenery group. - Fix: [#15148] Track Designs Manager delete confirmation window doesn't display properly. +- Fix: [#15170] Plugin: incorrect label text alignment. - Improved: [#3417] Crash dumps are now placed in their own folder. - Change: [#8601] Revert ToonTower base block fix to re-enable support blocking. diff --git a/src/openrct2-ui/scripting/CustomWindow.cpp b/src/openrct2-ui/scripting/CustomWindow.cpp index fd0a123a30..2765c06daf 100644 --- a/src/openrct2-ui/scripting/CustomWindow.cpp +++ b/src/openrct2-ui/scripting/CustomWindow.cpp @@ -62,7 +62,7 @@ namespace OpenRCT2::Ui::Windows std::string Name; ImageId Image; std::string Text; - TextAlignment TextAlign; + TextAlignment TextAlign{}; colour_t Colour{}; std::string Tooltip; std::vector Items;