Bugfix in ecs
This commit is contained in:
parent
1ad6bf50a6
commit
451701726c
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ namespace psemek::ecs::detail
|
||||||
allocate(row_count_ + count);
|
allocate(row_count_ + count);
|
||||||
|
|
||||||
auto src = reinterpret_cast<Component *>(data);
|
auto src = reinterpret_cast<Component *>(data);
|
||||||
auto dst = reinterpret_cast<Component *>(data_);
|
auto dst = reinterpret_cast<Component *>(data_) + row_count_;
|
||||||
auto src_end = src + count;
|
auto src_end = src + count;
|
||||||
while (src != src_end)
|
while (src != src_end)
|
||||||
{
|
{
|
||||||
|
|
@ -145,7 +145,7 @@ namespace psemek::ecs::detail
|
||||||
allocate(row_count_ + count);
|
allocate(row_count_ + count);
|
||||||
|
|
||||||
auto src = reinterpret_cast<Component const *>(data);
|
auto src = reinterpret_cast<Component const *>(data);
|
||||||
auto dst = reinterpret_cast<Component *>(data_);
|
auto dst = reinterpret_cast<Component *>(data_) + row_count_;
|
||||||
auto src_end = src + count;
|
auto src_end = src + count;
|
||||||
while (src != src_end)
|
while (src != src_end)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue