fix(ecs): revert mistakenly removing return statement in Entity::add
This commit is contained in:
parent
879d375b7f
commit
237d852ede
1 changed files with 1 additions and 2 deletions
|
@ -19,7 +19,7 @@ public:
|
||||||
template<typename Component_T>
|
template<typename Component_T>
|
||||||
auto add(Component_T component) -> 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>
|
template<typename Component_T>
|
||||||
|
@ -42,7 +42,6 @@ public:
|
||||||
private:
|
private:
|
||||||
memory::Ref<Registry> m_registry;
|
memory::Ref<Registry> m_registry;
|
||||||
|
|
||||||
|
|
||||||
EntityId m_identifier;
|
EntityId m_identifier;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue