From d677d2ac1d07b772eec52f2811802cc549844449 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Apr 2020 12:41:27 -0400 Subject: [PATCH] CSfxManager: Always initialize m_isEmitter Provides a deterministic initial state. While we're at it, we can remove an unnecessary initializer. --- Runtime/Audio/CSfxManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Audio/CSfxManager.hpp b/Runtime/Audio/CSfxManager.hpp index 9d13697c9..a8af78cbc 100644 --- a/Runtime/Audio/CSfxManager.hpp +++ b/Runtime/Audio/CSfxManager.hpp @@ -109,8 +109,7 @@ public: void SetTimeRemaining(float t) { x4_timeRemaining = t; } CBaseSfxWrapper(bool looped, s16 prio, /*const CSfxHandle& handle,*/ bool useAcoustics, TAreaId area) - : x8_rank(0) - , xa_prio(prio) + : xa_prio(prio) , /*xc_handle(handle),*/ x10_area(area) , x14_24_isActive(true) , x14_25_isPlaying(false) @@ -118,6 +117,7 @@ public: , x14_27_inArea(true) , x14_28_isReleased(false) , x14_29_useAcoustics(useAcoustics) + , m_isEmitter(false) , m_isClosed(false) {} };