From 96bcf72d96cf59e3e1f5aaefb9b62b5e9b154e18 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 16 Feb 2019 13:31:23 -0500 Subject: Document the BattleAnimCmd_ClearObjs bug --- engine/battle_anims/anim_commands.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engine') 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 -- cgit v1.2.3