From 66ab0517b0ca771fdfb92af87f2bfb8216a13777 Mon Sep 17 00:00:00 2001 From: sumneko Date: Mon, 15 Apr 2019 17:23:01 +0800 Subject: =?UTF-8?q?=E6=A3=80=E6=9F=A5=E7=A9=BAblock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/vm.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/src/vm/vm.lua') diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index cd24f1ad..ef3ce27b 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -851,6 +851,7 @@ function mt:doLocal(action) end function mt:doIf(action) + self:instantSource(action) for _, block in ipairs(action) do if block.filter then self:getExp(block.filter) @@ -863,7 +864,7 @@ function mt:doIf(action) end function mt:doLoop(action) - + self:instantSource(action) local min = self:getFirstInMulti(self:getExp(action.min)) self:getExp(action.max) if action.step then @@ -877,6 +878,7 @@ function mt:doLoop(action) end function mt:doIn(action) + self:instantSource(action) local args = self:unpackList(action.exp) self:scopePush(action) @@ -893,7 +895,7 @@ function mt:doIn(action) end function mt:doWhile(action) - + self:instantSource(action) self:getExp(action.filter) self:scopePush(action) -- cgit v1.2.3