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/battle/misc.asm | |
parent | cb32c895e479f4a470ca7fb113dc8db870302a5e (diff) |
hQuotient is a four-byte buffer (fixes #558)
Diffstat (limited to 'engine/battle/misc.asm')
-rw-r--r-- | engine/battle/misc.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/misc.asm b/engine/battle/misc.asm index 5a7b44cb1..6bfc4eb24 100644 --- a/engine/battle/misc.asm +++ b/engine/battle/misc.asm @@ -119,14 +119,14 @@ DoWeatherModifiers: ld b, 4 call Divide - ldh a, [hQuotient + 0] + ldh a, [hQuotient + 1] and a ld bc, -1 jr nz, .Update - ldh a, [hQuotient + 1] - ld b, a ldh a, [hQuotient + 2] + ld b, a + ldh a, [hQuotient + 3] ld c, a or b jr nz, .Update |