summaryrefslogtreecommitdiff
path: root/src/fldeff_decoration.c
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-05-29 17:53:42 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-05-29 17:53:42 -0500
commit5df6fa5c08a19fb89308f6131dceef721cc5a3d0 (patch)
tree5aaaa5828622b42023320e211cffd3dd4bb3feb8 /src/fldeff_decoration.c
parentaa8299821dca148ecfd5d6bfb77641043e01da5c (diff)
Unify 'map object' and 'field object' terms into 'event object'
Diffstat (limited to 'src/fldeff_decoration.c')
-rw-r--r--src/fldeff_decoration.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fldeff_decoration.c b/src/fldeff_decoration.c
index 18178d07c..ea0eb96c5 100644
--- a/src/fldeff_decoration.c
+++ b/src/fldeff_decoration.c
@@ -236,8 +236,8 @@ void SpriteCB_YellowCave4Sparkle(struct Sprite *sprite)
void DoYellowCave4Sparkle(void)
{
- s16 x = gMapObjects[gPlayerAvatar.mapObjectId].currentCoords.x;
- s16 y = gMapObjects[gPlayerAvatar.mapObjectId].currentCoords.y;
+ s16 x = gEventObjects[gPlayerAvatar.eventObjectId].currentCoords.x;
+ s16 y = gEventObjects[gPlayerAvatar.eventObjectId].currentCoords.y;
u8 spriteId;
sub_8060470(&x, &y, 8, 4);