Przeglądaj źródła

storage: update traits_type for entity storage

Michele Caini 3 lat temu
rodzic
commit
75894dc401
1 zmienionych plików z 1 dodań i 1 usunięć
  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. */