summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}