From 9db0dd741d914c95bfe09b2a2f6650d3da27f467 Mon Sep 17 00:00:00 2001 From: Snesrev Date: Tue, 4 Apr 2023 04:11:07 +0200 Subject: [PATCH] Draygon_Func_42 uses undefined varE24 value --- src/sm_cpu_infra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sm_cpu_infra.c b/src/sm_cpu_infra.c index ca4b203..96abec8 100644 --- a/src/sm_cpu_infra.c +++ b/src/sm_cpu_infra.c @@ -373,6 +373,9 @@ uint32 PatchBugs(uint32 mode, uint32 addr) { // Kraid_Shot_Mouth: The real game doesn't preserve R18, R20 so they're junk at this point. // Force getting out of the loop. g_cpu->x = 0; + } else if (FixBugHook(0xa5a018)) { + // Draygon_Func_42 uses undefined varE24 value + REMOVED_varE24 = 0; } return 0;