[ecs] Initialize registry href_comp to nullent

This indicates that no hierarchy reference component has been
registered, which must be done by the user when hierarchies are used.
This commit is contained in:
Bill Currie 2022-10-28 11:39:59 +09:00
parent 45e47a6df0
commit f6820c59e7

View file

@ -38,6 +38,7 @@ ECS_NewRegistry (void)
{
ecs_registry_t *reg = calloc (1, sizeof (ecs_registry_t));
reg->next = Ent_Index (nullent);
reg->href_comp = nullent;
return reg;
}