mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-08 10:21:40 +00:00
[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:
parent
45e47a6df0
commit
f6820c59e7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue