summaryrefslogtreecommitdiff
path: root/src/fldeff_decoration.c
diff options
context:
space:
mode:
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 d65a23e95..62e02df12 100644
--- a/src/fldeff_decoration.c
+++ b/src/fldeff_decoration.c
@@ -236,8 +236,8 @@ void SpriteCB_GlitterMatSparkle(struct Sprite *sprite)
void DoSecretBaseGlitterMatSparkle(void)
{
- s16 x = gEventObjects[gPlayerAvatar.eventObjectId].currentCoords.x;
- s16 y = gEventObjects[gPlayerAvatar.eventObjectId].currentCoords.y;
+ s16 x = gObjectEvents[gPlayerAvatar.objectEventId].currentCoords.x;
+ s16 y = gObjectEvents[gPlayerAvatar.objectEventId].currentCoords.y;
u8 spriteId;
sub_8060470(&x, &y, 8, 4);