From f483f5c1e6717e3cdb1de847ab7d1ad051de2751 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 10 Apr 2020 15:47:36 -0400 Subject: [PATCH] CPersistentOptions: Initialize bitfields in default constructor --- Runtime/CGameOptions.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Runtime/CGameOptions.hpp b/Runtime/CGameOptions.hpp index a77e3e849..01513df55 100644 --- a/Runtime/CGameOptions.hpp +++ b/Runtime/CGameOptions.hpp @@ -64,7 +64,13 @@ class CPersistentOptions { bool xd0_29_allItemsCollected : 1; public: - CPersistentOptions() = default; + CPersistentOptions() + : xd0_24_fusionLinked(false) + , xd0_25_normalModeBeat(false) + , xd0_26_hardModeBeat(false) + , xd0_27_fusionBeat(false) + , xd0_28_fusionSuitActive(false) + , xd0_29_allItemsCollected(false) {} explicit CPersistentOptions(CBitStreamReader& stream); bool GetCinematicState(CAssetId mlvlId, TEditorId cineId) const;