summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-05-23 09:26:22 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-05-23 09:26:22 -0500
commit22e6e3532900b2470d0134f1347981d77828b22c (patch)
treed8cea366e68eca40bac0a6c0edf0c85a27eda520 /src/berry.c
parent612f62725a2ed3be07f688f867aca3eb7579ab19 (diff)
Label all of MapObject struct members, and ground effect flags
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/berry.c b/src/berry.c
index 349703299..8829407da 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -1545,8 +1545,8 @@ void ResetBerryTreeSparkleFlags(void)
{
if (gMapObjects[i].active && gMapObjects[i].animPattern == 12) // is the object an active berry tree?
{
- cam_left = gMapObjects[i].coords2.x;
- cam_top = gMapObjects[i].coords2.y;
+ cam_left = gMapObjects[i].currentCoords.x;
+ cam_top = gMapObjects[i].currentCoords.y;
if (left <= cam_left && cam_left <= right && top <= cam_top && cam_top <= bottom)
ResetBerryTreeSparkleFlag(gMapObjects[i].trainerRange_berryTreeId);
}