Skip to content

Commit

Permalink
SanderMertens#70 replace ecs_set macro
Browse files Browse the repository at this point in the history
  • Loading branch information
rishubn committed Nov 10, 2019
1 parent 59d43cf commit 6abc150
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ gcov
/build/.vs/flecs/v16/ipch/AutoPCH/1a91898c113228b0/WORKER.ipch
/build/.vs/flecs/v16/ipch/AutoPCH/12c837dbdc301675/OS_API.ipch
/build/.vs/flecs/v16/ipch/AutoPCH/7a29093f03663f7c/CHUNKED.ipch
/build/x64/Debug/ZERO_CHECK/ZERO_CHECK.tlog/unsuccessfulbuild
3 changes: 2 additions & 1 deletion src/entity.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ ecs_type_t instantiate_prefab(
uint32_t index = entity_info->index + j - 1;
ecs_entity_t entity = entity_ids[index];
ecs_adopt(world, child + j, entity);
ecs_set(world, child + j, EcsId, op->id);
_ecs_set_ptr(world, child + j, ecs_entity(EcsId), sizeof(EcsId), &((EcsId)op->id));
//ecs_set(world, child + j, EcsId, op->id);
}
}
}
Expand Down

0 comments on commit 6abc150

Please sign in to comment.