diff --git a/src/code/code_800C3C20.c b/src/code/code_800C3C20.c index 8384ab2e94..ef84cd6fff 100644 --- a/src/code/code_800C3C20.c +++ b/src/code/code_800C3C20.c @@ -5,9 +5,9 @@ u8 sSfxBankIds[] = { }; void AudioMgr_StopAllSfx(void) { - u32 i; + u8* bankIdPtr; - for (i = 0; (u32)(i < ARRAY_COUNT(sSfxBankIds)); i++) { - Audio_StopSfxByBank(sSfxBankIds[i]); + for (bankIdPtr = &sSfxBankIds[0]; bankIdPtr < (sSfxBankIds + ARRAY_COUNT(sSfxBankIds)); bankIdPtr++) { + Audio_StopSfxByBank(*bankIdPtr); } }