From 0aa5a5517703a7dcbcf0ef2ef29fa37f8f1da6ed Mon Sep 17 00:00:00 2001 From: rodri Date: Wed, 3 Apr 2024 12:47:25 +0000 Subject: scene: fix uninitialized nents field. --- scene.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scene.c b/scene.c index 4427835..2d74451 100644 --- a/scene.c +++ b/scene.c @@ -160,6 +160,7 @@ newscene(char *name) s = emalloc(sizeof *s); s->name = name == nil? nil: strdup(name); s->ents.prev = s->ents.next = &s->ents; + s->nents = 0; s->addent = scene_addent; return s; } -- cgit v1.2.3