Fix util::ecs::get(species)

This commit is contained in:
Nikita Lisitsa 2021-08-12 20:45:41 +03:00
parent f15dd26bb9
commit df59cffd43

View file

@ -341,7 +341,7 @@ namespace psemek::util
template <typename Component>
Component const & ecs::get(handle species) const
{
return const_cast<typename Component::data const &>(const_cast<ecs *>(this)->get<Component>(species));
return const_cast<Component const &>(const_cast<ecs *>(this)->get<Component>(species));
}
template <typename Component>