diff options
author | mid-kid <esteve.varela@gmail.com> | 2019-02-15 17:21:51 +0100 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2019-02-15 17:21:51 +0100 |
commit | ee86b367662ab8f7a81a644c66f5bf14ead59ba8 (patch) | |
tree | 55c480e193fc4ea7d04da2785aed0615d932c9f2 /engine/battle_anims/core.asm | |
parent | 4154f191e09404748de4faa3a63bcb51faf42c98 (diff) |
wNumActiveBattleAnims → wLastAnimObjectIndex
This variable never decrements, it only increments to give each battle
animation a different, and incremental "index".
Diffstat (limited to 'engine/battle_anims/core.asm')
-rw-r--r-- | engine/battle_anims/core.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle_anims/core.asm b/engine/battle_anims/core.asm index 86863389c..c5afb53ba 100644 --- a/engine/battle_anims/core.asm +++ b/engine/battle_anims/core.asm @@ -15,7 +15,7 @@ QueueBattleAnimation: .done ld c, l ld b, h - ld hl, wNumActiveBattleAnims + ld hl, wLastAnimObjectIndex inc [hl] call InitBattleAnimation ret @@ -38,7 +38,7 @@ endr ld d, h ld hl, BATTLEANIMSTRUCT_INDEX add hl, bc - ld a, [wNumActiveBattleAnims] + ld a, [wLastAnimObjectIndex] ld [hli], a ; Index ld a, [de] inc de |