summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-29 16:47:51 +0800
committersumneko <sumneko@hotmail.com>2019-04-29 16:47:51 +0800
commitdc2dc8c3a842a945b48ac8241180a7b1c6eb82a9 (patch)
tree7c283e71dd36195b2fbfd0b3474dd322705c1851 /server
parent22fe270e5f107b12f6faf9785d52377b87cb0c93 (diff)
downloadlua-language-server-dc2dc8c3a842a945b48ac8241180a7b1c6eb82a9.zip
修正报错
Diffstat (limited to 'server')
-rw-r--r--server/src/vm/value.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index 43f278c0..f731892b 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -227,7 +227,9 @@ function mt:flushChild()
local src = listMgr.get(srcId)
if src then
if info.type == 'set child' or info.type == 'get child' then
- alived[info[1]] = true
+ if info[1] then
+ alived[info[1]] = true
+ end
end
count = count + 1
else