From c58959eba25f34053e6c0a63078b23004454624d Mon Sep 17 00:00:00 2001 From: Megamouse Date: Mon, 15 Apr 2024 15:29:21 +0200 Subject: [PATCH] Fix some msvc for loop warning --- rpcs3/Emu/savestate_utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpcs3/Emu/savestate_utils.cpp b/rpcs3/Emu/savestate_utils.cpp index 18d41b6507..fc1a3cc455 100644 --- a/rpcs3/Emu/savestate_utils.cpp +++ b/rpcs3/Emu/savestate_utils.cpp @@ -172,21 +172,21 @@ bool is_savestate_version_compatible(const std::vector& data, boo auto& channel = (is_boot_check ? sys_log.error : sys_log.trace); - for (auto [identifier, version] : data) + for (const auto& entry : data) { - if (identifier >= s_serial_versions.size()) + if (entry.type >= s_serial_versions.size()) { - channel("Savestate version identifier is unknown! (category=%u, version=%u)", identifier, version); + channel("Savestate version identifier is unknown! (category=%u, version=%u)", entry.type, entry.version); ok = false; // Log all mismatches } - else if (!s_serial_versions[identifier].compatible_versions.count(version)) + else if (!s_serial_versions[entry.type].compatible_versions.count(entry.version)) { - channel("Savestate version is not supported. (category=%u, version=%u)", identifier, version); + channel("Savestate version is not supported. (category=%u, version=%u)", entry.type, entry.version); ok = false; } else if (is_boot_check) { - s_serial_versions[identifier].current_version = version; + s_serial_versions[entry.type].current_version = entry.version; } }