From cfa31849be4b722aec55ebdfd739dd453d4f9bf9 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sat, 8 Mar 2025 15:23:08 +0100 Subject: [PATCH] Fix: company livery window's instance variables were not set --- src/company_gui.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 8030f8aa97..68e765a5bf 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -594,13 +594,13 @@ public: /** Company livery colour scheme window. */ struct SelectCompanyLiveryWindow : public Window { private: - uint32_t sel; - LiveryClass livery_class; - Dimension square; - uint rows; - uint line_height; - GUIGroupList groups; - Scrollbar *vscroll; + uint32_t sel = 0; + LiveryClass livery_class{}; + Dimension square{}; + uint rows = 0; + uint line_height = 0; + GUIGroupList groups{}; + Scrollbar *vscroll = nullptr; void ShowColourDropDownMenu(uint32_t widget) {