summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/lm
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-04-23 15:27:15 +0200
committerLioncash <mathew1800@gmail.com>2021-04-23 15:27:18 +0200
commit29cd40bded0ee7885fdef9f0a2fbb4e6ad297561 (patch)
treeca2a836cf5a6f1bf312d65490a985c94c7cacdbc /src/core/hle/service/lm
parentlm: Prevent redundant map lookups in Log() (diff)
downloadyuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar.gz
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar.bz2
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar.lz
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar.xz
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.tar.zst
yuzu-29cd40bded0ee7885fdef9f0a2fbb4e6ad297561.zip
Diffstat (limited to 'src/core/hle/service/lm')
-rw-r--r--src/core/hle/service/lm/lm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index b311ad300..9bcf8870d 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -105,7 +105,7 @@ private:
if (True(header.flags & LogPacketFlags::Head)) {
std::vector<u8> tmp(data.size() - sizeof(LogPacketHeader));
std::memcpy(tmp.data(), data.data() + offset, tmp.size());
- entries[entry] = std::move(tmp);
+ entries.insert_or_assign(entry, std::move(tmp));
} else {
const auto entry_iter = entries.find(entry);