From c2340047debdfa00c1946a113008f7982f68dcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 1 Aug 2022 15:39:13 +0800 Subject: fix #1418 --- script/vm/function.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/vm/function.lua') diff --git a/script/vm/function.lua b/script/vm/function.lua index f64b2262..148211be 100644 --- a/script/vm/function.lua +++ b/script/vm/function.lua @@ -201,7 +201,7 @@ end ---@return parser.object[] function vm.getMatchedFunctions(func, args, mark) local funcs = {} - local node = vm.compileNode(func) + local node = vm.getNode(func) or vm.compileNode(func) for n in node:eachObject() do if n.type == 'function' or n.type == 'doc.type.function' then -- cgit v1.2.3