diff options
Diffstat (limited to 'script/vm/ref.lua')
-rw-r--r-- | script/vm/ref.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |