Skip to content

Commit 016a1ee

Browse files
authored
Merge pull request #154 from gymnast86/main
Fix console crash when entering final staircase
2 parents 0101173 + 9d58563 commit 016a1ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

asm/patch_diffs/required_bosses_diff.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ Relocations:
2020
- {r_addend: 0x8FAE4C, r_info: 0x104, r_offset: 0x28FAE7E}
2121
- {r_addend: 0x8FAE44, r_info: 0x106, r_offset: 0x28FAEAA}
2222
- {r_addend: 0x8FAE44, r_info: 0x104, r_offset: 0x28FAEAE}
23+
- {r_addend: 0x1F84DC, r_info: 0x206, r_offset: 0x28FAED6}
24+
- {r_addend: 0x1F84DC, r_info: 0x204, r_offset: 0x28FAEDA}

asm/patches/required_bosses.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ check_required_bosses_check_continue_loop:
6767
bne+ check_required_bosses_begin_loop
6868

6969
; If all required bosses are defeated, set the associated switch flag (0x25)
70-
lis r3, 0x1020
71-
lwz r3, -0x7b24(r3)
70+
lis r3, gameInfo_ptr@ha
71+
lwz r3, gameInfo_ptr@l(r3)
7272
addi r3, r3, 0x20 ; SaveData->mCurInfo
7373
li r4, 0x25 ; flag
7474
li r5, 0 ; current room number (which is 0)

0 commit comments

Comments
 (0)