summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-09-02 18:22:29 +0200
committerSergeanur <s.anureev@yandex.ua>2021-09-02 18:22:29 +0200
commit3569b7edfeb805931352a4f236d862063d33756c (patch)
treee6995ca67c8caa49a96ef88867d6f818b4b880fa
parentFix reflection counter (diff)
downloadre3-3569b7edfeb805931352a4f236d862063d33756c.tar
re3-3569b7edfeb805931352a4f236d862063d33756c.tar.gz
re3-3569b7edfeb805931352a4f236d862063d33756c.tar.bz2
re3-3569b7edfeb805931352a4f236d862063d33756c.tar.lz
re3-3569b7edfeb805931352a4f236d862063d33756c.tar.xz
re3-3569b7edfeb805931352a4f236d862063d33756c.tar.zst
re3-3569b7edfeb805931352a4f236d862063d33756c.zip
-rw-r--r--src/audio/sampman_oal.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 4b79401d..d59b86e6 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -1470,7 +1470,10 @@ cSampleManager::InitialiseChannel(uint32 nChannel, uint32 nSfx, uint8 nBank)
slot += ARRAY_SIZE(nPedSlotSfx);
#endif
if ( nSfx == nPedSlotSfx[slot] )
+ {
addr = (nSampleBankMemoryStartAddress[SFX_BANK_PED_COMMENTS] + PED_BLOCKSIZE * slot);
+ break;
+ }
}
if (i == _TODOCONST(3))