diff options
Diffstat (limited to 'script/vm/runner.lua')
-rw-r--r-- | script/vm/runner.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua index 2be187c9..75de2c0f 100644 --- a/script/vm/runner.lua +++ b/script/vm/runner.lua @@ -192,7 +192,8 @@ function mt:_compileBlock(block) } self.steps[#self.steps+1] = blockStep self:_compileNarrowByFilter(childBlock.filter, outStep, blockStep) - if not childBlock.returns then + if not childBlock.hasReturn + and not childBlock.hasGoTo then finals[#finals+1] = blockStep end self.steps[#self.steps+1] = { |