From e56a9f7962fa2c17bad0fddc4cb27993111c177c Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 14 Feb 2022 17:28:08 -0500 Subject: [PATCH] Clear however many bytes are needed for wFruitTreeFlags --- engine/events/fruit_trees.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/events/fruit_trees.asm b/engine/events/fruit_trees.asm index eba4d998e..ea0d0f4d8 100644 --- a/engine/events/fruit_trees.asm +++ b/engine/events/fruit_trees.asm @@ -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]