fix(ecs): revert mistakenly removing return statement in Entity::add

This commit is contained in:
light7734 2025-10-06 11:59:57 +03:30
parent 879d375b7f
commit 237d852ede
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -19,7 +19,7 @@ public:
template<typename Component_T>
auto add(Component_T component) -> Component_T &
{
m_registry->add(m_identifier, component);
return m_registry->add(m_identifier, component);
}
template<typename Component_T>
@ -42,7 +42,6 @@ public:
private:
memory::Ref<Registry> m_registry;
EntityId m_identifier;
};