diff --git a/Source/Contents/PlayerNameDictionary.cpp b/Source/Contents/PlayerNameDictionary.cpp index 7ca4a5eb6..578bb0439 100644 --- a/Source/Contents/PlayerNameDictionary.cpp +++ b/Source/Contents/PlayerNameDictionary.cpp @@ -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);