Fix util::ecs::get_if
This commit is contained in:
parent
4e16f5d9bf
commit
66f733d937
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ namespace psemek::util
|
|||
template <typename Component>
|
||||
typename Component::data const * ecs::get_if(handle species, handle entity) const
|
||||
{
|
||||
return const_cast<typename Component::data const *>(const_cast<ecs *>(this)->get<Component>(species, entity));
|
||||
return const_cast<typename Component::data const *>(const_cast<ecs *>(this)->get_if<Component>(species, entity));
|
||||
}
|
||||
|
||||
template <typename Behavior>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue