summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
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..7276a895 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -779,7 +779,11 @@ cSampleManager::IsPedCommentLoaded(uint32 nComment)
for ( int32 i = 0; i < _TODOCONST(3); i++ )
{
+#ifdef FIX_BUGS
+ slot = (nCurrentPedSlot - i - 1) % ARRAY_SIZE(nPedSlotSfx);
+#else
slot = nCurrentPedSlot - i - 1;
+#endif
if ( nComment == nPedSlotSfx[slot] )
return true;
}