diff --git a/rpcs3/Emu/savestate_utils.cpp b/rpcs3/Emu/savestate_utils.cpp index 9252ecf807..9ffb236c4c 100644 --- a/rpcs3/Emu/savestate_utils.cpp +++ b/rpcs3/Emu/savestate_utils.cpp @@ -196,9 +196,9 @@ bool is_savestate_version_compatible(const std::vector& data, boo } else { - for (auto [identifier, _] : data) + for (auto& entry : s_serial_versions) { - s_serial_versions[identifier].current_version = 0; + entry.current_version = 0; } } }