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.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index d01712a6..453c0799 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -202,6 +202,9 @@ function mt:eachChild(callback, mark, foundIndex)
end
function mt:mergeValue(value)
+ if self == value then
+ return
+ end
if value._type then
for tp, rate in pairs(value._type) do
self:setType(tp, rate)