Fix #44 - Spatialhash now keeps strong references

This commit is contained in:
Matthias Richter 2018-04-08 14:40:38 +02:00
parent 358c7a80b5
commit 89c6b1a6b2

View File

@ -50,7 +50,7 @@ function Spatialhash:cell(i,k)
local cell = rawget(row, k)
if not cell then
cell = setmetatable({}, {__mode = "kv"})
cell = {}
rawset(row, k, cell)
end