From b948bb075069a5b0654a40988ead4de006d73e08 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 29 Jul 2021 14:00:44 +1000 Subject: [PATCH] CDImageDevice: Fix invalid TOC for multi-track discs --- src/common/cd_image_device.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/cd_image_device.cpp b/src/common/cd_image_device.cpp index 5087d0e0e..8bd832dc7 100644 --- a/src/common/cd_image_device.cpp +++ b/src/common/cd_image_device.cpp @@ -188,6 +188,7 @@ bool CDImageDeviceWin32::Open(const char* filename, Common::Error* error) disc_lba += previous_track_length; } + last_track_address = track_address; if (track_num == LEAD_OUT_TRACK_NUMBER) { AddLeadOutIndex();