From 62ef101b782e4331ef4f31f426a992ef123b52d7 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 18 Sep 2019 23:23:34 +0200 Subject: [PATCH] :bug: Fix fptr template --- src/parse/check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 42b37583..fc3fc8f2 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -587,8 +587,8 @@ CHECK_BO(check_call(env, exp)) if(!value && m_func) { map_set(&v->owner->info->type->map, (vtype)sym, (vtype)actual_type(m_func->value_ref->type)); } - } - free_fptr_def(env->gwion->mp, fptr); + } else if(!nspc_lookup_value1(v->owner, sym)) + free_fptr_def(env->gwion->mp, fptr); // ???? related } } else { for(m_uint i = 0; i < v->offset + 1; ++i) { -- 2.43.0