Document the BattleAnimCmd_ClearObjs bug

This commit is contained in:
Rangi
2019-02-16 13:31:23 -05:00
parent 771d2efd65
commit 96bcf72d96
2 changed files with 22 additions and 4 deletions

View File

@@ -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