diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-16 15:58:07 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-07-16 15:58:07 -0400 |
| commit | b23f0b2bdaa993f17d8312bcde5f2b8a59ef9c90 (patch) | |
| tree | 64db6e9f438a62248ef0f0fe8e874ca6cf94b720 /engine/battle | |
| parent | d9b44d4423f16aa238f0c5bccd65f8710afdd072 (diff) | |
Fewer uses of 'Thing2 - Thing1' for sizeof(Thing)
Diffstat (limited to 'engine/battle')
| -rw-r--r-- | engine/battle/core.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index c467ac495..57c0d7990 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -3619,10 +3619,10 @@ CheckPlayerPartyForFitMon: ld e, a xor a ld hl, wPartyMon1HP - ld bc, wPartyMon2 - (wPartyMon1 + 1) + ld bc, PARTYMON_STRUCT_LENGTH - 1 .loop or [hl] - inc hl + inc hl ; + 1 or [hl] add hl, bc dec e |
