System: Fix failing to load new single disc save states
This commit is contained in:
parent
fa2525324e
commit
5df28eff9d
|
@ -1213,7 +1213,7 @@ bool DoLoadState(ByteStream* state, bool force_software_renderer, bool update_di
|
|||
|
||||
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 ||
|
||||
(media->HasSubImages() && media->GetCurrentSubImage() != header.media_subimage_index &&
|
||||
!media->SwitchSubImage(header.media_subimage_index, &error)))
|
||||
|
|
Loading…
Reference in New Issue