From 8ea2d12dca93ec7617298526d2f60caec4ffd84f Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 27 Aug 2025 02:58:12 +0200 Subject: [PATCH] CD-ROM Image: Fix loading ISO and CUE CD-ROM images. --- src/cdrom/cdrom_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdrom/cdrom_image.c b/src/cdrom/cdrom_image.c index 1d472d97e..5e31abff4 100644 --- a/src/cdrom/cdrom_image.c +++ b/src/cdrom/cdrom_image.c @@ -1016,7 +1016,7 @@ image_process(cd_image_t *img) session_changed = 1; } - for (int j = 0; j < ct->max_index; j++) { + for (int j = 0; j <= ct->max_index; j++) { ci = &(ct->idx[j]); if ((ci->type < INDEX_SPECIAL) || (ci->type > INDEX_NORMAL)) {