particle/ramp: assert sub particles where instantiated correctly

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

View file

@ -122,6 +122,7 @@ instantiate(const struct particle *particle, const struct tag_set *tags)
struct eprivate *e = calloc(1, sizeof(*e)); struct eprivate *e = calloc(1, sizeof(*e));
e->exposable = pp->instantiate(pp, tags); e->exposable = pp->instantiate(pp, tags);
assert(e->exposable != NULL);
char *on_click = tags_expand_template(particle->on_click_template, tags); char *on_click = tags_expand_template(particle->on_click_template, tags);
struct exposable *exposable = exposable_common_new(particle, on_click); struct exposable *exposable = exposable_common_new(particle, on_click);