From: fennecdjay Date: Tue, 8 Oct 2019 10:04:53 +0000 (+0200) Subject: :bomb: Fix add_ygen X-Git-Tag: nightly~2198^2~115 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fa4e7e0d53c92a520921dcee2127c8e2e64d3094;p=gwion.git :bomb: Fix add_ygen --- diff --git a/src/lib/ugen.c b/src/lib/ugen.c index dd21a84c..1fec7ae6 100644 --- a/src/lib/ugen.c +++ b/src/lib/ugen.c @@ -306,13 +306,13 @@ struct ugen_importer { }; ANN static m_int add_ugen(const Gwi gwi, struct ugen_importer* imp) { + CHECK_BB(gwi_item_ini(gwi, "UGen", imp->name)) VM* vm = gwi_vm(gwi); const M_Object o = new_M_UGen(gwi->gwion); const UGen u = imp->ugen = UGEN(o); ugen_ini(vm->gwion, u, imp->nchan, imp->nchan); ugen_gen(vm->gwion, u, imp->tick, (void*)imp->vm, 0); vector_add(&vm->ugen, (vtype)u); - CHECK_BB(gwi_item_ini(gwi, "UGen", imp->name)) return gwi_item_end(gwi, ae_flag_const, o); }