瀏覽代碼

snapshot: use the right allocator for the remote-local mapping

Michele Caini 2 年之前
父節點
當前提交
3f1277f7bd
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/entt/entity/snapshot.hpp

+ 2 - 1
src/entt/entity/snapshot.hpp

@@ -390,7 +390,8 @@ public:
      * @param source A valid reference to a registry.
      */
     basic_continuous_loader(registry_type &source) noexcept
-        : reg{&source} {}
+        : remloc{source.get_allocator()},
+          reg{&source} {}
 
     /*! @brief Default move constructor. */
     basic_continuous_loader(basic_continuous_loader &&) = default;