hQuotient is a four-byte buffer (fixes #558)

This commit is contained in:
Rangi
2018-08-26 13:49:38 -04:00
parent cb32c895e4
commit 557ce82073
22 changed files with 107 additions and 110 deletions

View File

@@ -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