ref: e56a9f7962fa2c17bad0fddc4cb27993111c177c
parent: 145ab57abab950a563f07e7389c3a67f4b2fce0f
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Mon Feb 14 12:28:08 EST 2022
Clear however many bytes are needed for wFruitTreeFlags
--- a/engine/events/fruit_trees.asm
+++ b/engine/events/fruit_trees.asm
@@ -61,9 +61,9 @@
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]