summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/berry.c b/src/berry.c
index ffd30d47f..17dd5eaf1 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -1241,7 +1241,7 @@ void ResetBerryTreeSparkleFlags(void)
top = cam_top + 3;
right = cam_left + 14;
bottom = top + 8;
- for (i = 0; i < (u8)ARRAY_COUNT(gSaveBlock1Ptr->mapObjects); i++)
+ for (i = 0; i < MAP_OBJECTS_NUMBER; i++)
{
if (gMapObjects[i].active && gMapObjects[i].animPattern == 12)
{