SDL_mixer: MIX_SetTrack3DPosition: Fixed typo where we checked the wrong array index.

From 72cb03c61f2734ae9f3541003f2847b4f6b73684 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 4 Nov 2026 22:35:50 -0500
Subject: [PATCH] MIX_SetTrack3DPosition: Fixed typo where we checked the wrong
 array index.

Fixes #904.
---
 src/SDL_mixer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL_mixer.c b/src/SDL_mixer.c
index b1ef3f58..abdccd46 100644
--- a/src/SDL_mixer.c
+++ b/src/SDL_mixer.c
@@ -2854,7 +2854,7 @@ bool MIX_SetTrack3DPosition(MIX_Track *track, const MIX_Point3D *position)
         track->position3d[0] = track->position3d[1] = track->position3d[2] = 0.0f;
     } else {
         float *tposition3d = track->position3d;
-        if (toggling || ((tposition3d[0] != position->x) || (tposition3d[2] != position->y) || (tposition3d[2] != position->z))) {
+        if (toggling || ((tposition3d[0] != position->x) || (tposition3d[1] != position->y) || (tposition3d[2] != position->z))) {
             tposition3d[0] = position->x;
             tposition3d[1] = position->y;
             tposition3d[2] = position->z;