diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 179e43d5e..d8c0889f6 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -248,7 +248,8 @@ class basic_registry { // std::shared_ptr because of its type erased allocator which is useful here using pool_container_type = dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>>; - using group_container_type = dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>>; + using owning_group_container_type = dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>>; + using non_owning_group_container_type = dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>>; template [[nodiscard]] auto &assure(const id_type id = type_hash::value()) { @@ -1384,8 +1385,8 @@ public: private: context vars; pool_container_type pools; - group_container_type owning_groups; - group_container_type non_owning_groups; + owning_group_container_type owning_groups; + non_owning_group_container_type non_owning_groups; storage_for_type *shortcut; };