summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/vm/function.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua
index 20a5c75b..7df9c3ea 100644
--- a/server/src/vm/function.lua
+++ b/server/src/vm/function.lua
@@ -151,9 +151,9 @@ function mt:setReturn(index, value)
end
if value then
self.returns[index] = value
- end
- if self._global then
- value:markGlobal()
+ if self._global then
+ value:markGlobal()
+ end
end
end