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 ad84d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpcs3/Emu/savestate_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ 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;
entry.current_version = 0;
}
}
}
Expand Down

0 comments on commit ad84d9e

Please sign in to comment.