You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
hQuotient is a four-byte buffer (fixes #558)
This commit is contained in:
@@ -786,10 +786,10 @@ Link_PrepPartyData_Gen1:
|
||||
pop bc
|
||||
pop de
|
||||
|
||||
ldh a, [hQuotient + 1]
|
||||
ldh a, [hQuotient + 2]
|
||||
ld [de], a
|
||||
inc de
|
||||
ldh a, [hQuotient + 2]
|
||||
ldh a, [hQuotient + 3]
|
||||
ld [de], a
|
||||
inc de
|
||||
ld h, b
|
||||
@@ -1059,10 +1059,10 @@ Function2868a:
|
||||
predef CalcMonStatC
|
||||
pop bc
|
||||
pop hl
|
||||
ldh a, [hQuotient + 1]
|
||||
ld [hli], a
|
||||
ldh a, [hQuotient + 2]
|
||||
ld [hli], a
|
||||
ldh a, [hQuotient + 3]
|
||||
ld [hli], a
|
||||
push hl
|
||||
push bc
|
||||
ld hl, MON_STAT_EXP - 1
|
||||
@@ -1072,10 +1072,10 @@ Function2868a:
|
||||
predef CalcMonStatC
|
||||
pop bc
|
||||
pop hl
|
||||
ldh a, [hQuotient + 1]
|
||||
ld [hli], a
|
||||
ldh a, [hQuotient + 2]
|
||||
ld [hli], a
|
||||
ldh a, [hQuotient + 3]
|
||||
ld [hli], a
|
||||
push hl
|
||||
ld hl, $1b
|
||||
add hl, bc
|
||||
|
Reference in New Issue
Block a user