Clear however many bytes are needed for wFruitTreeFlags

This commit is contained in:
Rangi 2022-02-14 17:28:08 -05:00
parent 145ab57aba
commit e56a9f7962

View File

@ -61,9 +61,9 @@ PickedFruitTree:
ResetFruitTrees:
xor a
ld hl, wFruitTreeFlags
rept (NUM_FRUIT_TREES + 7) / 8 - 1
ld [hli], a
ld [hli], a
ld [hli], a
endr
ld [hl], a
ld hl, wDailyFlags1
set DAILYFLAGS1_ALL_FRUIT_TREES_F, [hl]