Samus_HandleScrewAttackSpeedBoostingPals reads bad addr (Fixes #18)

This commit is contained in:
Snesrev
2023-03-11 17:53:53 +01:00
parent bcc7572392
commit 72f5bf5795
2 changed files with 9 additions and 2 deletions

View File

@@ -314,6 +314,10 @@ uint32 PatchBugs(uint32 mode, uint32 addr) {
g_cpu->mf = 0;
return 0xA497CE;
}
} else if (FixBugHook(0x91DA89)) {
// Samus_HandleScrewAttackSpeedBoostingPals reads OOB
if (special_samus_palette_frame > 6)
special_samus_palette_frame = 6;
}
return 0;