Fix reading starting area offset to prevent indexing out of bounds

This commit is contained in:
cassidoxa
2022-01-12 20:31:27 -05:00
parent 2a3d6fae58
commit 6d72a1a9c2

View File

@@ -80,8 +80,8 @@ AllowStartFromSingleEntranceCave:
LDA $7EF3C8 : AND.w #$00FF ; What we wrote over LDA $7EF3C8 : AND.w #$00FF ; What we wrote over
PHA PHA
TAX TAX
LDA.l StartingAreaExitOffset, X LDA.l StartingAreaExitOffset, X
AND.w #$00FF
BNE + BNE +
JMP .done JMP .done