summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-28 03:27:20 +0200
committerGitHub <noreply@github.com>2020-07-28 03:27:20 +0200
commitdb944572052e7444c86b383a4ab94f5ae284945e (patch)
tree3f62053e57bf471ce04a4bea7068752b9f6e2106 /src/core/hle/service
parenthle: nvdrv: Rewrite of GPU memory management. (diff)
downloadyuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar.gz
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar.bz2
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar.lz
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar.xz
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.tar.zst
yuzu-db944572052e7444c86b383a4ab94f5ae284945e.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp
index 7228910a0..9436e16ad 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp
@@ -65,7 +65,7 @@ u32 nvmap::CreateObject(u32 size) {
const u32 handle = next_handle++;
- handles[handle] = std::move(object);
+ handles.insert_or_assign(handle, std::move(object));
return handle;
}