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 07:59:32 +0100
commitde31bdc89fe2b2d191bee7a0c224b35bc0c9612e (patch)
tree677be52372e636035f37c0d18b27f9892228425c /src/audio/AudioManager.cpp
parentMerge pull request #886 from erorcun/master (diff)
downloadre3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.gz
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.bz2
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.lz
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.xz
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.zst
re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-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 947bda40..868f1b65 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