summaryrefslogtreecommitdiff
path: root/engine/battle_anims/anim_commands.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2019-02-16 13:31:23 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2019-02-16 13:31:23 -0500
commit96bcf72d96cf59e3e1f5aaefb9b62b5e9b154e18 (patch)
tree2a7f64e3afc5be75fb256361eef3f0cabad7d22d /engine/battle_anims/anim_commands.asm
parent771d2efd6569036531d69cf79d9b5aa163341cfc (diff)
Document the BattleAnimCmd_ClearObjs bug
Diffstat (limited to 'engine/battle_anims/anim_commands.asm')
-rw-r--r--engine/battle_anims/anim_commands.asm6
1 files changed, 2 insertions, 4 deletions
diff --git a/engine/battle_anims/anim_commands.asm b/engine/battle_anims/anim_commands.asm
index 135ec31ea..b003ab4b4 100644
--- a/engine/battle_anims/anim_commands.asm
+++ b/engine/battle_anims/anim_commands.asm
@@ -644,11 +644,9 @@ BattleAnimCmd_ResetObp0:
ret
BattleAnimCmd_ClearObjs:
-; BUG: This function only clears the first 6+(2/3) objects
-
+; BUG: This function only clears the first 6⅔ objects
ld hl, wActiveAnimObjects
- ld a, $a0
- ; ld a, wActiveAnimObjectsEnd - wActiveAnimObjects
+ ld a, $a0 ; should be NUM_ANIM_OBJECTS * BATTLEANIMSTRUCT_LENGTH
.loop
ld [hl], 0
inc hl