1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 07:30:01 +00:00

Fix setting sampleIndex

This commit is contained in:
Filip Gawin 2019-07-21 12:36:30 +02:00
parent 67d93dc28d
commit 6cf4a6af6c

View file

@ -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;