diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-07-21 12:36:30 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-07-21 12:45:47 +0200 |
commit | 6cf4a6af6c1b24a1e684d6e42e585d56219028c2 (patch) | |
tree | 970f08db9ba8bcd5a3b332c70e1b7b5559a126c9 | |
parent | Merge pull request #160 from erorcun/erorcun (diff) | |
download | re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar.gz re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar.bz2 re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar.lz re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar.xz re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.tar.zst re3-6cf4a6af6c1b24a1e684d6e42e585d56219028c2.zip |
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 368c08e8..0b1198ab 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -287,8 +287,8 @@ cAudioManager::AddSampleToRequestedQueue() calculatedVolume = m_sQueueSample.field_16 * (maxVolume - m_sQueueSample.m_bVolume); sampleIndex = m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; if(sampleIndex >= m_bActiveSamples) { - sampleIndex = *(&m_asSamples[1][26].field_91 + m_bActiveSamples + - 27 * m_bActiveSampleQueue); + sampleIndex = + m_abSampleQueueIndexTable[m_bActiveSampleQueue][m_bActiveSamples - 1]; if(m_asSamples[m_bActiveSampleQueue][sampleIndex].calculatedVolume <= calculatedVolume) return; |