Merge pull request #82 from aerinon/CountBottleFix

Prevent CountBottles from overwriting what is in register X.
This commit is contained in:
KatDevsGames
2020-09-20 02:00:27 -04:00
committed by GitHub

View File

@@ -1101,6 +1101,7 @@ AttemptItemSubstitution:
RTS
;--------------------------------------------------------------------------------
CountBottles:
PHX
LDX.b #$00
LDA $7EF35C : BEQ ++ : INX
++ : LDA $7EF35D : BEQ ++ : INX
@@ -1108,6 +1109,7 @@ CountBottles:
++ : LDA $7EF35F : BEQ ++ : INX
++
TXA
PLX
RTS
;--------------------------------------------------------------------------------
ActivateGoal: