Explorar o código

storage: update traits_type for entity storage

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
75894dc401
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/entity/storage.hpp

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

@@ -973,7 +973,7 @@ public:
     /*! @brief Type of the objects assigned to entities. */
     using value_type = Entity;
     /*! @brief Component traits. */
-    using traits_type = component_traits<void>;
+    using traits_type = component_traits<value_type>;
     /*! @brief Underlying entity identifier. */
     using entity_type = Entity;
     /*! @brief Unsigned integer type. */