diff options
Diffstat (limited to 'scene.c')
-rw-r--r-- | scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -201,9 +201,10 @@ delscene(Scene *s) void clearscene(Scene *s) { - Entity *e; + Entity *e, *ne; - for(e = s->ents.next; e != &s->ents; e = e->next){ + for(e = s->ents.next; e != &s->ents; e = ne){ + ne = e->next; s->delent(s, e); delentity(e); } |