diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-04 14:24:54 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-07-04 14:24:54 +0200 |
commit | 62425b586631f95d67f2c9ba8c9a4f202e03bda4 (patch) | |
tree | 418a28a718cfe01cc0b8a224e0c1bab6a75de26a /src/audio | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
parent | Merge branch 'miami' into lcs (diff) | |
download | re3-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.cpp | 2 |
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); |