summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-11-18 17:44:00 -0500
committerShadowNinja <shadowninja@minetest.net>2013-11-18 17:44:00 -0500
commit5f68c111dc84f5f5604cd39be15812d364f3e26d (patch)
treeca077e87793c150f661402ac007b0230c372abc4
parent8765a5e6198777f7ca414c87e2cf77accfba9bc8 (diff)
Fix crash with recursive_remove_areas
-rw-r--r--internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.lua b/internal.lua
index 80187dc..3c4212b 100644
--- a/internal.lua
+++ b/internal.lua
@@ -38,7 +38,7 @@ function areas:remove(id, recurse)
-- Recursively find child entries and remove them
local cids = self:getChildren(id)
for _, cid in pairs(cids) do
- self:removeArea(cid, true)
+ self:remove(cid, true)
end
else
-- Update parents