particle/list: assert sub particles where instantiated correctly

This commit is contained in:
Daniel Eklöf 2020-11-02 19:05:23 +01:00
parent 44db9304c5
commit df2d8fec36
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -118,6 +118,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
for (size_t i = 0; i < p->count; i++) { for (size_t i = 0; i < p->count; i++) {
const struct particle *pp = p->particles[i]; const struct particle *pp = p->particles[i];
e->exposables[i] = pp->instantiate(pp, tags); e->exposables[i] = pp->instantiate(pp, tags);
assert(e->exposables[i] != NULL);
} }
char *on_click = tags_expand_template(particle->on_click_template, tags); char *on_click = tags_expand_template(particle->on_click_template, tags);