mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01:00
Fix some msvc for loop warning
This commit is contained in:
parent
2f53d58cd9
commit
c58959eba2
@ -172,21 +172,21 @@ bool is_savestate_version_compatible(const std::vector<version_entry>& 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user