diff --git a/modules/ecs/public/entity.hpp b/modules/ecs/public/entity.hpp index ba24a4c..29fb61d 100644 --- a/modules/ecs/public/entity.hpp +++ b/modules/ecs/public/entity.hpp @@ -19,7 +19,7 @@ public: template auto add(Component_T component) -> Component_T & { - m_registry->add(m_identifier, component); + return m_registry->add(m_identifier, component); } template @@ -42,7 +42,6 @@ public: private: memory::Ref m_registry; - EntityId m_identifier; };