System: Fix failing to load new single disc save states

This commit is contained in:
Connor McLaughlin 2021-03-27 15:43:39 +10:00
parent fa2525324e
commit 5df28eff9d
1 changed files with 1 additions and 1 deletions

View File

@ -1213,7 +1213,7 @@ bool DoLoadState(ByteStream* state, bool force_software_renderer, bool update_di
if (media && header.version >= 51) if (media && header.version >= 51)
{ {
const u32 num_subimages = media->HasSubImages() ? media->GetSubImageCount() : 0; const u32 num_subimages = media->HasSubImages() ? media->GetSubImageCount() : 1;
if (header.media_subimage_index >= num_subimages || if (header.media_subimage_index >= num_subimages ||
(media->HasSubImages() && media->GetCurrentSubImage() != header.media_subimage_index && (media->HasSubImages() && media->GetCurrentSubImage() != header.media_subimage_index &&
!media->SwitchSubImage(header.media_subimage_index, &error))) !media->SwitchSubImage(header.media_subimage_index, &error)))