diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-03 15:39:22 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-03 15:39:22 +0200 |
commit | 5d5e0f62e8b677e122cbdceef8badcbaae7c0235 (patch) | |
tree | 499f2b9d749dc151a1f78b0f1e6433046d358636 /src/audio/AudioManager.cpp | |
parent | Merge branch 'miami' into lcs (diff) | |
parent | Fix overflow in audio code (diff) | |
download | re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.gz re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.bz2 re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.lz re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.xz re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.tar.zst re3-5d5e0f62e8b677e122cbdceef8badcbaae7c0235.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-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); |