mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Fix some msvc for loop warning
This commit is contained in:
parent
2f53d58cd9
commit
c58959eba2
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
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
|
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;
|
ok = false;
|
||||||
}
|
}
|
||||||
else if (is_boot_check)
|
else if (is_boot_check)
|
||||||
{
|
{
|
||||||
s_serial_versions[identifier].current_version = version;
|
s_serial_versions[entry.type].current_version = entry.version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue