summaryrefslogtreecommitdiff
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-09-02 19:22:29 +0300
committerSergeanur <s.anureev@yandex.ua>2021-09-02 19:22:29 +0300
commit3569b7edfeb805931352a4f236d862063d33756c (patch)
treee6995ca67c8caa49a96ef88867d6f818b4b880fa /src/audio/sampman_oal.cpp
parenta15d5589b360ff95dc42dbeda95910fa1c4b19ae (diff)
Fix ped comments on oal
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-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))