Explorar o código

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

Michele Caini %!s(int64=2) %!d(string=hai) anos
pai
achega
3f1277f7bd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;