Fix registering const components

This commit is contained in:
Nikita Lisitsa 2024-05-21 13:23:08 +03:00
parent 70b260ec50
commit 938aa688cc

View file

@ -401,7 +401,7 @@ namespace psemek::ecs
template <typename Component>
void container::register_component()
{
component_registry_.register_component<Component>();
component_registry_.register_component<std::remove_cvref_t<Component>>();
}
template <typename ... Components>