Tiny fix in ecs accessor is_empty constness
This commit is contained in:
parent
4b9591885a
commit
faacf6dbc0
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ namespace psemek::ecs
|
|||
if (!column)
|
||||
return nullptr;
|
||||
|
||||
return reinterpret_cast<Component *>(column->data() + detail::stride<Component>() * row_);
|
||||
return reinterpret_cast<Component *>(column->data() + detail::stride<std::remove_const_t<Component>>() * row_);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue