瀏覽代碼

registry: use the "right" allocator

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

+ 1 - 1
src/entt/entity/registry.hpp

@@ -395,7 +395,7 @@ public:
      * @return The associated allocator.
      */
     [[nodiscard]] constexpr allocator_type get_allocator() const noexcept {
-        return pools.get_allocator();
+        return entities.get_allocator();
     }
 
     /**