From 5da8740d528b6f20e969a5b2f5fbd7679e3d267d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 18 Mar 2019 17:34:40 +0800 Subject: =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/value.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server') diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua index a1ee897b..9b33afe1 100644 --- a/server/src/vm/value.lua +++ b/server/src/vm/value.lua @@ -39,6 +39,10 @@ local function create (tp, source, literal) end local function isDeadChild(value, index) + local child = value._child[index] + if not child:getSource() then + return true + end for srcId, info in pairs(value._info) do local src = sourceMgr.list[srcId] if src -- cgit v1.2.3