summaryrefslogtreecommitdiff
path: root/src/berry.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-06-11 09:19:17 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-06-11 09:19:17 -0500
commit4018acfae12ab5d39aaff9acdeaa5d713d1def0e (patch)
treec918365a54ec69c75b3349dfafd81b3a08baa80a /src/berry.c
parent38a126df66092487803d2759c1698fa86a5be01d (diff)
Update event object struct members
Diffstat (limited to 'src/berry.c')
-rw-r--r--src/berry.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/berry.c b/src/berry.c
index e128eb0ec..3b5df1cc8 100644
--- a/src/berry.c
+++ b/src/berry.c
@@ -1238,10 +1238,10 @@ void ResetBerryTreeSparkleFlags(void)
bottom = top + 8;
for (i = 0; i < MAP_OBJECTS_COUNT; i++)
{
- if (gMapObjects[i].active && gMapObjects[i].animPattern == 12)
+ if (gMapObjects[i].active && gMapObjects[i].movementType == 12)
{
- 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);
}