aboutsummaryrefslogtreecommitdiffstats
path: root/engine/events/poison.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/events/poison.asm')
-rw-r--r--engine/events/poison.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/poison.asm b/engine/events/poison.asm
index beb1a312..8c3dc8b3 100644
--- a/engine/events/poison.asm
+++ b/engine/events/poison.asm
@@ -65,7 +65,7 @@ ApplyOutOfBattlePoisonDamage:
ld a, [de]
inc a
jr z, .applyDamageLoopDone
- ld bc, wPartyMon2 - wPartyMon1
+ ld bc, PARTYMON_STRUCT_LENGTH
add hl, bc
push hl
ld hl, wWhichPokemon
@@ -82,7 +82,7 @@ ApplyOutOfBattlePoisonDamage:
and 1 << PSN
or e
ld e, a
- ld bc, wPartyMon2 - wPartyMon1
+ ld bc, PARTYMON_STRUCT_LENGTH
add hl, bc
dec d
jr nz, .countPoisonedLoop