diff options
-rw-r--r-- | script/vm/compiler.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index fc8f7c52..11ba07ab 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1055,7 +1055,7 @@ local function compileFunctionParam(func, source) local derviationParam = config.get(guide.getUri(func), 'Lua.type.inferParamType') if derviationParam and func.parent.type == 'local' and func.parent.ref then local refs = func.parent.ref - local found + local found for _, ref in ipairs(refs) do if ref.parent.type ~= 'call' then goto continue @@ -1069,13 +1069,13 @@ local function compileFunctionParam(func, source) local callerArg = caller.args[index] if callerArg then vm.setNode(source, vm.compileNode(callerArg)) - finded = true + found = true end end end ::continue:: end - return finded + return found end end |