diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/config/config.lua | 2 | ||||
-rw-r--r-- | script/vm/compiler.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/config/config.lua b/script/config/config.lua index 538b18ab..dc4b9330 100644 --- a/script/config/config.lua +++ b/script/config/config.lua @@ -434,7 +434,7 @@ function m.update(scp, ...) local news = table.pack(...) for i = 1, news.n do - if news[i] then + if type(news[i]) == 'table' then expand(news[i]) end end diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 6c95b5bd..cd2b602d 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -533,7 +533,7 @@ end -- 该函数有副作用,会给source绑定node! local function bindDocs(source) local isParam = source.parent.type == 'funcargs' - or source.parent.type == 'in' + or (source.parent.type == 'in' and source.finish <= source.parent.keys.finish) local docs = source.bindDocs for i = #docs, 1, -1 do local doc = docs[i] |