Decompile fn_23737 (CSession::ToggleTrackedAchievement)
Batch #13157 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_23737 CSession::ToggleTrackedAchievement: logic confirmed by peer review Peer-reviewed-by: Tanke, cremane, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
2d080c719e
commit
43cfc2e5f2
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ int CSession::AddUnknown6160(int id) {
|
|||
// FUNCTION: fn_23737
|
||||
bool CSession::ToggleTrackedAchievement(int id) {
|
||||
std::vector<SessionRecord6178>& tracked = this->unknown_6178;
|
||||
auto found = std::find_if(tracked.begin(), tracked.end(), [id](SessionRecord6178 record) { return id == record.id; });
|
||||
auto found = tracked.begin();
|
||||
while (found != tracked.end() && found->id != id) {
|
||||
++found;
|
||||
}
|
||||
|
||||
SessionRecord6144* progress;
|
||||
auto record = this->unknown_6144.find(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue