[scene] Zero freshly allocated entity memory

I don't remember why I didn't want to clear it. I hope this doesn't
cause other trouble.
This commit is contained in:
Bill Currie 2022-05-07 00:51:44 +09:00
parent f41031f270
commit 91c877b1a1
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ Scene_CreateEntity (scene_t *scene)
{
scene_resources_t *res = scene->resources;
entity_t *ent = PR_RESNEW_NC (res->entities);
entity_t *ent = PR_RESNEW (res->entities);
ent->transform = Transform_New (scene, 0);
ent->id = PR_RESINDEX (res->entities, ent);