wNumActiveBattleAnims → wLastAnimObjectIndex
This variable never decrements, it only increments to give each battle animation a different, and incremental "index".
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user