Browse Source

Update src/core/hle/service/nvdrv/devices/nvmap.cpp

Co-authored-by: LC <mathew1800@gmail.com>
bunnei 6 years ago
parent
commit
db94457205
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/hle/service/nvdrv/devices/nvmap.cpp

+ 1 - 1
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;
 }