Преглед изворни кода

storage: update traits_type for entity storage

Michele Caini пре 3 година
родитељ
комит
75894dc401
1 измењених фајлова са 1 додато и 1 уклоњено
  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. */