summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-05-25 11:07:55 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-05-29 17:43:11 -0500
commite435d62f0a496652482c89d7fd696ecc08d22a15 (patch)
tree8e33e1cc7eef2b7fd6a0628e13714ecee78c3549 /src/berry.c
parentbc97185452e4dd38a808afeac7b6c774d4ab1163 (diff)
Define movement type constants
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 5a0e39580..e3b56657b 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -1543,7 +1543,7 @@ void ResetBerryTreeSparkleFlags(void)
bottom = top + 8;
for (i = 0; i < (u8)ARRAY_COUNT(gSaveBlock1.mapObjects); i++)
{
- if (gMapObjects[i].active && gMapObjects[i].movementType == 12) // is the object an active berry tree?
+ if (gMapObjects[i].active && gMapObjects[i].movementType == MOVEMENT_TYPE_BERRY_TREE_GROWTH)
{
cam_left = gMapObjects[i].currentCoords.x;
cam_top = gMapObjects[i].currentCoords.y;