diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-03 14:57:08 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-03 14:57:48 +0200 |
commit | 77f31105de436108970f2041ef73013121234ba6 (patch) | |
tree | c8bea8e73cd03154ef412d2777803934b643d913 | |
parent | Fix Mac M1 premake (diff) | |
download | re3-77f31105de436108970f2041ef73013121234ba6.tar re3-77f31105de436108970f2041ef73013121234ba6.tar.gz re3-77f31105de436108970f2041ef73013121234ba6.tar.bz2 re3-77f31105de436108970f2041ef73013121234ba6.tar.lz re3-77f31105de436108970f2041ef73013121234ba6.tar.xz re3-77f31105de436108970f2041ef73013121234ba6.tar.zst re3-77f31105de436108970f2041ef73013121234ba6.zip |
-rw-r--r-- | src/audio/AudioManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index a3bc6a01..2e391349 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -977,7 +977,7 @@ void cAudioManager::AdjustSamplesVolume() { for (int i = 0; i < m_SampleRequestQueuesStatus[m_nActiveSampleQueue]; i++) { - tSound *pSample = &m_asSamples[m_nActiveSampleQueue][m_abSampleQueueIndexTable[m_nActiveSampleQueue][i] + 1]; + tSound *pSample = &m_asSamples[m_nActiveSampleQueue][m_abSampleQueueIndexTable[m_nActiveSampleQueue][i]]; if (!pSample->m_bIs2D) pSample->m_nEmittingVolume = ComputeEmittingVolume(pSample->m_nEmittingVolume, pSample->m_fSoundIntensity, pSample->m_fDistance); |