From 2d4e1b88b225d598cae29369d3962a7f1f6c64fc Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 7 Nov 2023 15:52:49 +0400 Subject: [PATCH 1/2] Init missing field --- components/nif/controller.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/nif/controller.hpp b/components/nif/controller.hpp index 33c04a6d35..947fae1ab2 100644 --- a/components/nif/controller.hpp +++ b/components/nif/controller.hpp @@ -171,7 +171,7 @@ namespace Nif }; NiPosDataPtr mData; - TargetColor mTargetColor; + TargetColor mTargetColor = TargetColor::Ambient; void read(NIFStream* nif) override; void post(Reader& nif) override; From 47c7997a23e39471675a43dcf20df7a752851502 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 7 Nov 2023 15:57:25 +0400 Subject: [PATCH 2/2] Init an another field --- components/esm4/loadrace.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esm4/loadrace.hpp b/components/esm4/loadrace.hpp index 9cd4d00891..125fefbd9f 100644 --- a/components/esm4/loadrace.hpp +++ b/components/esm4/loadrace.hpp @@ -110,7 +110,7 @@ namespace ESM4 ESM::FormId mId; // from the header std::uint32_t mFlags; // from the header, see enum type RecordFlag for details - bool mIsTES5; + bool mIsTES5 = false; std::string mEditorId; std::string mFullName;