summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-14 21:29:23 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-14 21:29:23 +0200
commit09a0207e55ac8a69639c85997c330ec0f7caf4a6 (patch)
treef7784f9199ee39054ca94a1f6cf5de880c7c243f /src/audio/sampman_oal.cpp
parentmore pedattractor (diff)
parentFix compilation (diff)
downloadre3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar.gz
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar.bz2
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar.lz
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar.xz
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.tar.zst
re3-09a0207e55ac8a69639c85997c330ec0f7caf4a6.zip
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-rw-r--r--src/audio/sampman_oal.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 64b763ec..30efd7f5 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -780,6 +780,10 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
for ( int32 i = 0; i < _TODOCONST(3); i++ )
{
slot = nCurrentPedSlot - i - 1;
+#ifdef FIX_BUGS
+ if (slot < 0)
+ slot += ARRAY_SIZE(nPedSlotSfx);
+#endif
if ( nComment == nPedSlotSfx[slot] )
return true;
}