Browse Source

storage: minor changes

Michele Caini 3 năm trước cách đây
mục cha
commit
05ef4c29d8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/entt/entity/storage.hpp

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

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