mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
Replace hardcoded address offset
This commit is contained in:
parent
19e4e188ce
commit
9dc48a1be7
|
@ -619,7 +619,7 @@ SAVCheckRandomID:
|
|||
ld a,[sMainDataCheckSum]
|
||||
cp c
|
||||
jr nz,.next
|
||||
ld hl,sMainData + 98 ; player ID
|
||||
ld hl,sMainData + (wPlayerID - wMainDataStart) ; player ID
|
||||
ld a,[hli]
|
||||
ld h,[hl]
|
||||
ld l,a
|
||||
|
|
Loading…
Reference in a new issue