CDImageDevice: Fix invalid TOC for multi-track discs

This commit is contained in:
Connor McLaughlin 2021-07-29 14:00:44 +10:00
parent 77eb8e4b72
commit b948bb0750

View file

@ -188,6 +188,7 @@ bool CDImageDeviceWin32::Open(const char* filename, Common::Error* error)
disc_lba += previous_track_length; disc_lba += previous_track_length;
} }
last_track_address = track_address;
if (track_num == LEAD_OUT_TRACK_NUMBER) if (track_num == LEAD_OUT_TRACK_NUMBER)
{ {
AddLeadOutIndex(); AddLeadOutIndex();