summaryrefslogtreecommitdiff
path: root/server/src/vm/value.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/vm/value.lua')
-rw-r--r--server/src/vm/value.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index 29419966..efbe50c4 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -344,7 +344,6 @@ function mt:mergeValue(value)
if not value then
return
end
- local global = self._global or value._global
local list = {self, value}
local pos = 1
while true do
@@ -360,6 +359,7 @@ function mt:mergeValue(value)
a:flushChild()
b:flushChild()
+ local global = a._global or b._global
if b._child then
if not a._child then
a._child = {}