summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scene.c1
1 files changed, 1 insertions, 0 deletions
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;
}