diff --git a/source/duke3d/src/sounds.cpp b/source/duke3d/src/sounds.cpp index 7ec9e171d..7e1da561e 100644 --- a/source/duke3d/src/sounds.cpp +++ b/source/duke3d/src/sounds.cpp @@ -57,7 +57,7 @@ void S_SoundStartup(void) initprintf("%d voices, %d channels, %d-bit %d Hz\n", ud.config.NumVoices, ud.config.NumChannels, ud.config.NumBits, ud.config.MixRate); - for (bssize_t i=0; i 0) return -1; } @@ -958,7 +958,7 @@ void S_ClearSoundLocks(void) if (rts_lumplockbyte[i] >= 200) rts_lumplockbyte[i] = 199; - for (i = 0; i < msp; ++i) + for (i = 0; i <= msp; ++i) if (g_soundlocks[i] >= 200) g_soundlocks[i] = 199; } @@ -982,7 +982,7 @@ int32_t A_CheckAnySoundPlaying(int32_t i) { int32_t const msp = g_highestSoundIdx; - for (bssize_t j=0; j