From 58fdb64ab5552352ab60ab71399e2671899dee6d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 11 Apr 2020 19:53:27 -0400 Subject: [PATCH] CWorldTransManager: Initialize all members on construction Provides a deterministic initial state upon construction, making debugging easier. --- Runtime/World/CWorldTransManager.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Runtime/World/CWorldTransManager.hpp b/Runtime/World/CWorldTransManager.hpp index 02567d3c8..5e4fe37e4 100644 --- a/Runtime/World/CWorldTransManager.hpp +++ b/Runtime/World/CWorldTransManager.hpp @@ -58,18 +58,18 @@ private: std::unique_ptr x8_textData; TLockedToken xc_strTable; u8 x14_ = 0; - float x18_bgOffset; - float x1c_bgHeight; + float x18_bgOffset = 0.0f; + float x1c_bgHeight = 0.0f; CRandom16 x20_random = CRandom16(99); u16 x24_sfx = 1189; CSfxHandle x28_sfxHandle; u8 x2c_volume = 127; u8 x2d_panning = 64; ETransType x30_type = ETransType::Disabled; - float x34_stopTime; + float x34_stopTime = 0.0f; float x38_textStartTime = 0.f; - float x3c_sfxInterval; - bool x40_strIdx; + float x3c_sfxInterval = 0.0f; + bool x40_strIdx = false; bool x44_24_transFinished : 1; bool x44_25_stopSoon : 1; bool x44_26_goingUp : 1;