summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 07:59:32 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 08:03:13 +0100
commit6a2edcea4647e9a7f6e84c4270614ccf58794fcb (patch)
treef3bc8d6adfe517830eb5d7f9975628e29f8b389a /src/audio/AudioManager.cpp
parentFix chainsaw sounds lol (diff)
downloadre3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar.gz
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar.bz2
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar.lz
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar.xz
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.tar.zst
re3-6a2edcea4647e9a7f6e84c4270614ccf58794fcb.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index fbfdb855..5e29fdf1 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -128,7 +128,7 @@ cAudioManager::CreateEntity(eAudioType type, void *entity)
for (uint32 i = 0; i < ARRAY_SIZE(m_asAudioEntities); i++) {
if (!m_asAudioEntities[i].m_bIsUsed) {
m_asAudioEntities[i].m_bIsUsed = true;
- m_asAudioEntities[i].m_nStatus = 0;
+ m_asAudioEntities[i].m_bStatus = false;
m_asAudioEntities[i].m_nType = type;
m_asAudioEntities[i].m_pEntity = entity;
m_asAudioEntities[i].m_awAudioEvent[0] = SOUND_NO_SOUND;
@@ -163,7 +163,7 @@ void
cAudioManager::SetEntityStatus(int32 id, uint8 status)
{
if (m_bIsInitialised && id >= 0 && id < NUM_AUDIOENTITIES && m_asAudioEntities[id].m_bIsUsed)
- m_asAudioEntities[id].m_nStatus = status;
+ m_asAudioEntities[id].m_bStatus = status;
}
void