Skip to content

Commit

Permalink
Fix child B button glitch (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
HylianFreddy authored Oct 22, 2022
1 parent f6a4954 commit 04baecf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/src/savefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ u16 SaveFile_RestoreChildEquips(void) {
//if Kokiri Sword is not on child B button
if (gSaveContext.childEquips.buttonItems[0] != ITEM_SWORD_KOKIRI) {
gSaveContext.infTable[29] |= 0x1; //set swordless flag
gSaveContext.buttonStatus[0] = 0xFF; //clear Temp B
}
return (gSaveContext.childEquips.equipment & 0xFFF0) | (gSaveContext.equipment & 0x1);
}
Expand Down

0 comments on commit 04baecf

Please sign in to comment.