summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/compile.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua
index 4e0018a9..910aa357 100644
--- a/server/src/matcher/compile.lua
+++ b/server/src/matcher/compile.lua
@@ -232,6 +232,9 @@ function mt:setTable(var, tbl, mode)
return
end
var.childs = tbl.childs
+ for _, child in pairs(tbl.childs) do
+ child.parent = var
+ end
end
function mt:setMeta(var, meta)