From f65de4fabbe2b8b1a66a13661adc26f9b93f5d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 15 Mar 2019 15:40:28 +0800 Subject: =?UTF-8?q?=E5=88=A4=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/local.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/vm') diff --git a/server/src/vm/local.lua b/server/src/vm/local.lua index 6ddaac03..8f9ee3e4 100644 --- a/server/src/vm/local.lua +++ b/server/src/vm/local.lua @@ -109,6 +109,9 @@ end function mt:shadow(old) if not old then + if not self._shadow then + return nil + end for i = #self._shadow, 1, -1 do local loc = self._shadow[i] if not loc:getSource() then -- cgit v1.2.3