summaryrefslogtreecommitdiff
path: root/honey/ecs/node.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-09 12:25:19 -0500
committersanine-a <sanine.not@pm.me>2023-05-09 12:25:19 -0500
commitfe6564d8c31662d4d2c2606c62ba6d4416c6b6a6 (patch)
tree462b61628de09d16dbf2af4e2b18157e38ab4435 /honey/ecs/node.lua
parent02247e743b83669e2d799111fc10a4772de66dfc (diff)
delete _child table each frame
Diffstat (limited to 'honey/ecs/node.lua')
-rw-r--r--honey/ecs/node.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/honey/ecs/node.lua b/honey/ecs/node.lua
index 645946c..4953af5 100644
--- a/honey/ecs/node.lua
+++ b/honey/ecs/node.lua
@@ -15,6 +15,7 @@ system = function(params)
-- prepare nodes
for id, node in pairs(nodes) do
node._visited = false
+ node._child = nil
end
-- helper function