diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-25 10:12:09 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-25 10:12:09 +0100 |
commit | 5f98b4fdca54ed6e97b91481af99c44063d2e2ae (patch) | |
tree | 34fbc38fe288a637ce2f62886ffc3491e4153487 /src/audio/AudioManager.cpp | |
parent | fix garage (diff) | |
parent | cMusicManager::ServiceGameMode fix (diff) | |
download | re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar.gz re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar.bz2 re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar.lz re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar.xz re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.tar.zst re3-5f98b4fdca54ed6e97b91481af99c44063d2e2ae.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
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 |