CPersistentOptions: Initialize bitfields in default constructor

This commit is contained in:
Luke Street 2020-04-10 15:47:36 -04:00
parent 153004faee
commit f483f5c1e6
1 changed files with 7 additions and 1 deletions

View File

@ -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;