mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
f41031f270
commit
91c877b1a1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue