summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_miles.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-14 14:39:23 +0200
committerGitHub <noreply@github.com>2020-05-14 14:39:23 +0200
commit704a5c158f110c14809c62e3cd35adf7029d2542 (patch)
tree492e7a68919f02d59169fbfc3d02ba2efede57d4 /src/audio/sampman_miles.cpp
parentfixed RotateTorso (diff)
parentit works differently (diff)
downloadre3-704a5c158f110c14809c62e3cd35adf7029d2542.tar
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.gz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.bz2
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.lz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.xz
re3-704a5c158f110c14809c62e3cd35adf7029d2542.tar.zst
re3-704a5c158f110c14809c62e3cd35adf7029d2542.zip
Diffstat (limited to 'src/audio/sampman_miles.cpp')
-rw-r--r--src/audio/sampman_miles.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/audio/sampman_miles.cpp b/src/audio/sampman_miles.cpp
index caf2917f..a2a206a4 100644
--- a/src/audio/sampman_miles.cpp
+++ b/src/audio/sampman_miles.cpp
@@ -1450,6 +1450,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;
}