summaryrefslogtreecommitdiffstats
path: root/src
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:08 +0200
commit3ed4cdf10944d8836b5005b552fafcc94f942d12 (patch)
tree465e4e5ab1ba836bad4b29795a4ca835dfc4650c /src
parentpremake: add no-full-paths option for CI builds, rename lto to with-lto (diff)
downloadre3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar.gz
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar.bz2
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar.lz
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar.xz
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.tar.zst
re3-3ed4cdf10944d8836b5005b552fafcc94f942d12.zip
Diffstat (limited to 'src')
-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 360a2275..131704dc 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -1076,7 +1076,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);