Fix registering const components
This commit is contained in:
parent
70b260ec50
commit
938aa688cc
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ namespace psemek::ecs
|
||||||
template <typename Component>
|
template <typename Component>
|
||||||
void container::register_component()
|
void container::register_component()
|
||||||
{
|
{
|
||||||
component_registry_.register_component<Component>();
|
component_registry_.register_component<std::remove_cvref_t<Component>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename ... Components>
|
template <typename ... Components>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue