From 52847c66b6cdf310176056617806867eae23571e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 9 Apr 2022 01:54:59 +0800 Subject: fix --- script/vm/ref.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/vm/ref.lua') diff --git a/script/vm/ref.lua b/script/vm/ref.lua index 51fd38bc..f7f1a6d1 100644 --- a/script/vm/ref.lua +++ b/script/vm/ref.lua @@ -160,11 +160,11 @@ local function searchField(source, pushResult, defMap, fileNotify) end ---@async -local function searchFunction(source, pushResult, fileNotify) +local function searchFunction(source, pushResult, defMap, fileNotify) ---@param src parser.object local function checkDef(src) for _, def in ipairs(vm.getDefs(src)) do - if def == source then + if defMap[def] then pushResult(src) return end -- cgit v1.2.3