From ff33633b568403f4f95ba79f97768c2f3218ea8a Mon Sep 17 00:00:00 2001 From: airstruck Date: Wed, 2 Sep 2015 18:43:12 -0400 Subject: [PATCH] fix leaked globals --- modules/octree.lua | 2 +- modules/quadtree.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/octree.lua b/modules/octree.lua index cf78a59..81303c1 100644 --- a/modules/octree.lua +++ b/modules/octree.lua @@ -9,7 +9,7 @@ octree.__index = octree -- TODO: ray-octree intersection - find all nodes a ray intersects with, possibly given a distance limit -- TODO: ability to store tables would be nice! -function new() +local function new() local t = { root = { size = 1, diff --git a/modules/quadtree.lua b/modules/quadtree.lua index 49e8595..7a0e183 100644 --- a/modules/quadtree.lua +++ b/modules/quadtree.lua @@ -4,7 +4,7 @@ local quadtree = {} quadtree.__index = quadtree -function new() +local function new() local t = { root = { size = 1,