From: fennecdjay Date: Mon, 27 Jun 2022 19:45:19 +0000 (+0200) Subject: :bug: Fix sporked capture X-Git-Tag: nightly~267 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=275b05895f3b55954ec2a98e45a20ca06e76053f;p=gwion.git :bug: Fix sporked capture --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 5139e9c8..b3f3e7a4 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1765,7 +1765,7 @@ ANN m_bool emit_exp_spork(const Emitter emit, const Exp_Unary *unary) { Capture_List caps = sporker.captures; for (uint32_t i = 0; i < caps->len; i++) { Capture *cap = mp_vector_at(caps, Capture, i); - const Value v = nspc_lookup_value1(emit->env->curr, cap->xid); + const Value v = cap->orig; struct Exp_ exp = { .d = { .prim = { .d = { .var = cap->xid },