mirror of
https://github.com/vrld/HC.git
synced 2024-11-18 12:54:23 +00:00
Fix #44 - Spatialhash now keeps strong references
This commit is contained in:
parent
358c7a80b5
commit
89c6b1a6b2
@ -50,7 +50,7 @@ function Spatialhash:cell(i,k)
|
|||||||
|
|
||||||
local cell = rawget(row, k)
|
local cell = rawget(row, k)
|
||||||
if not cell then
|
if not cell then
|
||||||
cell = setmetatable({}, {__mode = "kv"})
|
cell = {}
|
||||||
rawset(row, k, cell)
|
rawset(row, k, cell)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user