From dc1d7f569a80ccdcd3daef3fa69acaaf0910e0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 20 Dec 2018 21:26:08 +0800 Subject: =?UTF-8?q?=E5=88=A4=E4=B8=80=E4=B8=8B=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/vm.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/src/matcher/vm.lua') diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua index f2494432..b04089af 100644 --- a/server/src/matcher/vm.lua +++ b/server/src/matcher/vm.lua @@ -1097,7 +1097,9 @@ function mt:doFunction(action) end end local func = self:buildFunction(action, object) - self:setValue(var, func, source) + if var then + self:setValue(var, func, source) + end end function mt:doLocalFunction(action) @@ -1114,7 +1116,9 @@ function mt:doLocalFunction(action) end end local func = self:buildFunction(action, object) - self:setValue(var, func, source) + if var then + self:setValue(var, func, source) + end end function mt:doAction(action) -- cgit v1.2.3