summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-26 16:20:36 +0300
committerSergeanur <s.anureev@yandex.ua>2019-10-26 16:20:36 +0300
commit28bb221f7e44c03ae30b69a96a56bc467319a8ef (patch)
treedd1855b4e9fdff0c0b30128583004312e527d062 /src/audio
parent832572664c594e060813c46860fc71b0a2ac1710 (diff)
Fix audio bug
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 1428bb9f..c8e2656a 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -9174,7 +9174,7 @@ void
cAudioManager::AdjustSamplesVolume()
{
for(int i = 0; i < m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; i++) {
- tActiveSample *pSample = &m_asSamples[i][(int32)m_abSampleQueueIndexTable[i] + 1];
+ tActiveSample* pSample = &m_asSamples[m_bActiveSampleQueue][m_abSampleQueueIndexTable[m_bActiveSampleQueue][i] + 1];
if(!pSample->m_bBankIndex) // all non-speech sounds on PC
pSample->m_bEmittingVolume = ComputeEmittingVolume(