From 91f13fca126d2a71d844245822517d172ec95478 Mon Sep 17 00:00:00 2001 From: sumneko Date: Fri, 26 Apr 2019 10:35:51 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/source.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server') diff --git a/server/src/vm/source.lua b/server/src/vm/source.lua index 7f355c6b..59d5d66d 100644 --- a/server/src/vm/source.lua +++ b/server/src/vm/source.lua @@ -17,6 +17,13 @@ function mt:bindLocal(loc, action) self._action = action loc:addInfo(action, self) else + if not self._bindLocal then + return nil + end + if not self._bindLocal:getSource() then + self._bindLocal = nil + return nil + end return self._bindLocal end end -- cgit v1.2.3