summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-04-16 22:19:56 +0300
committereray orçunus <erayorcunus@gmail.com>2020-04-16 22:19:56 +0300
commit2c2da558cac7e235d1dc89264aa78695aae32394 (patch)
tree78ca1babbac01fff758c20ed9ae4bc3ffb210095 /src/audio
parent83cbe4e39ede4853e0d352e55aeddbd481b39948 (diff)
Some refs removed, little fixes and teleport
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/sampman.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/sampman.cpp b/src/audio/sampman.cpp
index 6dd744c3..7887c363 100644
--- a/src/audio/sampman.cpp
+++ b/src/audio/sampman.cpp
@@ -2221,6 +2221,9 @@ cSampleManager::InitialiseSampleBanks(void)
for ( int32 i = 0; i < TOTAL_AUDIO_SAMPLES; i++ )
{
+#ifdef FIX_BUGS
+ if (nBank >= MAX_SAMPLEBANKS) break;
+#endif
if ( BankStartOffset[nBank] == BankStartOffset[SAMPLEBANK_MAIN] + i )
{
nSampleBankDiscStartOffset[nBank] = m_aSamples[i].nOffset;