浏览代码

sigh_storage_mixin: use entity_type from Type

Michele Caini 3 年之前
父节点
当前提交
a9a9853c01
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/entt/entity/storage_mixin.hpp

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

@@ -39,7 +39,7 @@ class sigh_storage_mixin final: public Type {
         }
     }
 
-    basic_iterator try_emplace(const typename basic_registry_type::entity_type entt, const bool force_back, const void *value) final {
+    basic_iterator try_emplace(const typename Type::entity_type entt, const bool force_back, const void *value) final {
         ENTT_ASSERT(owner != nullptr, "Invalid pointer to registry");
         Type::try_emplace(entt, force_back, value);
         construction.publish(*owner, entt);