summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/example/vm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/example/vm.lua b/server/test/example/vm.lua
index d293fc38..eb882710 100644
--- a/server/test/example/vm.lua
+++ b/server/test/example/vm.lua
@@ -731,7 +731,7 @@ function mt:mergeFunctionReturn(func, index, value)
end
function mt:setFunctionReturn(func, index, value)
- func.hasReturn = true
+ func:set('hasReturn', true)
if not func.returns then
func.returns = {
type = 'list',
@@ -1226,7 +1226,7 @@ function mt:doDo(action)
end
function mt:doReturn(action)
- self:getCurrentFunction().hasReturn = true
+ self:getCurrentFunction():set('hasReturn', true)
for i, exp in ipairs(action) do
local value = self:getExp(exp)
if value.type == 'list' then