Decompile 2 functions in Source/Contents/PlayerNameDictionary.cpp
Batch #14330 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_04258 CPlayerNameDictionary::Set: logic confirmed by peer review - fn_04262 CPlayerNameDictionary::Lookup: logic confirmed by peer review (already on main) Peer-reviewed-by: secret, KWDev, 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
7af846ba23
commit
931d7e6a3d
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ std::string CPlayerNameDictionary::Lookup(std::uint32_t id) {
|
|||
// OFFSET: 0x0060ABB0
|
||||
// FUNCTION: fn_04258
|
||||
void CPlayerNameDictionary::Set(std::uint32_t id, std::string name) {
|
||||
this->m_names.insert_or_assign(id, Entry{std::move(name), timeGetTime()});
|
||||
this->m_names[id] = Entry{name, timeGetTime()};
|
||||
const auto request = std::find_if(this->m_requests.begin(), this->m_requests.end(), [&](const Request& value) { return value.id == id; });
|
||||
if (request != this->m_requests.end()) {
|
||||
this->m_requests.erase(request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue