sdl12-compat: cdrom: fix 'no track 1' edge case

From c810b6a4c41972b52c348490464332ac5f14cd3b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Noel?= <[EMAIL REDACTED]>
Date: Sun, 31 Dec 2023 14:53:31 +0100
Subject: [PATCH] cdrom: fix 'no track 1' edge case

---
 src/SDL12_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 3d849c32f..32902bfbe 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -8858,7 +8858,7 @@ SDL_CDOpen(int drive)
             SDL20_snprintf(fullpath, alloclen, "%s%strack%c%c.mp3", CDRomPath, DIRSEP, c0, c1);
             rw = SDL20_RWFromFile(fullpath, "rb");
             /* if there isn't a track 1 specified, pretend it's a data track, which matches most games' needs. */
-            if (!rw && (c == 0)) {
+            if (!rw && (c == 1)) {
                 fake_data_track = SDL_TRUE;
             }
         }