From 5df28eff9de91b7bc8f641944d0ee33c3bd76a49 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 27 Mar 2021 15:43:39 +1000 Subject: [PATCH] System: Fix failing to load new single disc save states --- src/core/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/system.cpp b/src/core/system.cpp index 5b5c8b474..07dc4b977 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -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)))