diff options
Diffstat (limited to 'server/src/vm/function.lua')
-rw-r--r-- | server/src/vm/function.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua index 723c5ff0..1106a0c9 100644 --- a/server/src/vm/function.lua +++ b/server/src/vm/function.lua @@ -154,7 +154,7 @@ function mt:setReturn(index, value) self.returns = createMulti() end if value then - self.returns[index] = value + self.returns:set(index, value) if self._global then value:markGlobal() end @@ -174,7 +174,7 @@ function mt:mergeReturn(index, value) self.returns[index]:mergeValue(value) self.returns[index] = value else - self.returns[index] = value + self.returns:set(index, value) end end if self._global then |