From b23f0b2bdaa993f17d8312bcde5f2b8a59ef9c90 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 16 Jul 2018 15:58:07 -0400 Subject: Fewer uses of 'Thing2 - Thing1' for sizeof(Thing) --- engine/battle/core.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/battle') 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 -- cgit v1.2.3