summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-03 14:57:08 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-03 14:57:48 +0200
commit77f31105de436108970f2041ef73013121234ba6 (patch)
treec8bea8e73cd03154ef412d2777803934b643d913 /src/audio
parentFix Mac M1 premake (diff)
downloadre3-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
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp2
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);