From 275b05895f3b55954ec2a98e45a20ca06e76053f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 27 Jun 2022 21:45:19 +0200 Subject: [PATCH] :bug: Fix sporked capture --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.43.0