From a17ae2a2d51e2decce0c793771a52999a1953270 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, 3 Dec 2018 14:05:41 +0800 Subject: =?UTF-8?q?=E8=BF=98=E6=98=AF=E8=A6=81=E9=81=8D=E5=8E=86=E4=B8=8B?= =?UTF-8?q?=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/definition.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src') diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua index a7221f29..4b7b04c5 100644 --- a/server/src/matcher/definition.lua +++ b/server/src/matcher/definition.lua @@ -132,11 +132,11 @@ end function mt:searchSimple(simple) local name = simple[1] - if name.type ~= 'name' then - return + local var + if name.type == 'name' then + var = self:getVar(name[1], name) + self:checkVar(var, name) end - local var = self:getVar(name[1], name) - self:checkVar(var, name) for i = 2, #simple do local obj = simple[i] local tp = obj.type -- cgit v1.2.3