diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-26 13:49:38 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-08-26 13:49:38 -0400 |
| commit | 557ce82073dc7c84ad701099713b00bcb7194860 (patch) | |
| tree | 6d6a604f834d17cd622528b78c3926ca422e3fa1 /engine/link | |
| parent | cb32c895e479f4a470ca7fb113dc8db870302a5e (diff) | |
hQuotient is a four-byte buffer (fixes #558)
Diffstat (limited to 'engine/link')
| -rw-r--r-- | engine/link/link.asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engine/link/link.asm b/engine/link/link.asm index 178b18740..ee88e34b6 100644 --- a/engine/link/link.asm +++ b/engine/link/link.asm @@ -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 |
