summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-07-04 14:24:54 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2021-07-04 14:24:54 +0200
commit62425b586631f95d67f2c9ba8c9a4f202e03bda4 (patch)
tree418a28a718cfe01cc0b8a224e0c1bab6a75de26a /src/audio
parentMerge remote-tracking branch 'upstream/lcs' into lcs (diff)
parentMerge branch 'miami' into lcs (diff)
downloadre3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar.gz
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar.bz2
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar.lz
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar.xz
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.tar.zst
re3-62425b586631f95d67f2c9ba8c9a4f202e03bda4.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 c4f49e19..4ecdff25 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -1078,7 +1078,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);