Fewer uses of 'Thing2 - Thing1' for sizeof(Thing)

This commit is contained in:
Rangi
2018-07-16 15:58:07 -04:00
parent d9b44d4423
commit b23f0b2bda
6 changed files with 22 additions and 27 deletions

View File

@@ -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