From 557ce82073dc7c84ad701099713b00bcb7194860 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 26 Aug 2018 13:49:38 -0400 Subject: hQuotient is a four-byte buffer (fixes #558) --- engine/link/link.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engine/link') 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 -- cgit v1.2.3