From 91c877b1a1f4e3da4baf14573b224a22d6b021bb Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 7 May 2022 00:51:44 +0900 Subject: [PATCH] [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. --- libs/scene/scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/scene/scene.c b/libs/scene/scene.c index e2a49a61e..69344f47c 100644 --- a/libs/scene/scene.c +++ b/libs/scene/scene.c @@ -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);