]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix template match scoping
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 19:24:05 +0000 (21:24 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sat, 9 May 2020 19:24:05 +0000 (21:24 +0200)
src/parse/check.c

index 1d6131fbf959ad25cd034415e5d9b2c02dbadbec..39ad0f933a2fe477d5ccc046a80e81bfa0dba726 100644 (file)
@@ -569,7 +569,7 @@ ANN static Func _find_template_match(const Env env, const Value v, const Exp_Cal
   }
   free_mstr(env->gwion->mp, tmpl_name);
   if(es.run)
-    envset_pop(&es, v->from->owner_class->e->owner_class);
+    envset_pop(&es, v->from->owner_class);
   env_pop(env, scope);
   env->func = former;
   return m_func;