Some refs removed, little fixes and teleport

This commit is contained in:
eray orçunus
2020-04-16 22:19:56 +03:00
parent 83cbe4e39e
commit 2c2da558ca
18 changed files with 167 additions and 142 deletions

View File

@ -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;