Skip to content

Commit

Permalink
savestate_utils.cpp: Fix out-of-range bug
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Apr 12, 2024
1 parent 19e333f commit 00ac311
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpcs3/Emu/savestate_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ bool is_savestate_version_compatible(const std::vector<version_entry>& data, boo
}
else
{
for (auto [identifier, _] : data)
for (auto& entry : s_serial_versions)
{
s_serial_versions[identifier].current_version = 0;
// Version 0 means that the entire constructor using the version should be skipped
entry.current_version = 0;
}
}
}
Expand Down

0 comments on commit 00ac311

Please sign in to comment.