2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 14:24:56 +00:00

Numerous uninitialized memory fixes

This commit is contained in:
Jack Andersen
2019-04-06 19:14:48 -10:00
parent b72cc490e8
commit 3a0d2930fa
48 changed files with 112 additions and 79 deletions

View File

@@ -604,12 +604,14 @@ void CSfxManager::Update(float dt) {
}
}
#ifndef URDE_MSAN
for (const CSfxHandle& handle : chanObj.x48_handles) {
if (handle->IsPlaying())
continue;
if (handle->Ready() && handle->IsInArea())
handle->Play();
}
#endif
m_doUpdate = false;
}

View File

@@ -113,8 +113,8 @@ public:
, x14_26_looped(looped)
, x14_27_inArea(true)
, x14_28_isReleased(false)
, m_isClosed(false)
, x14_29_useAcoustics(useAcoustics) {}
, x14_29_useAcoustics(useAcoustics)
, m_isClosed(false) {}
};
class CSfxEmitterWrapper : public CBaseSfxWrapper {