From 68af2448fd2a9681ba917f35fc7f51a8ef53b833 Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Sat, 26 Feb 2011 21:39:24 +0100 Subject: [PATCH] Fix typo --- spatialhash.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spatialhash.lua b/spatialhash.lua index ba90846..e464959 100644 --- a/spatialhash.lua +++ b/spatialhash.lua @@ -105,9 +105,9 @@ function Spatialhash:update(obj, ul_old, lr_old, ul_new, lr_new) local region_old = i >= ul_old.x and i <= lr_old.x and k >= ul_old.y and k <= lr_old.y local region_new = i >= ul_new.x and i <= lr_new.x and k >= ul_new.y and k <= lr_new.y if region_new and not region_old then - rawset(self.cells[{x=i,y=k}, obj, obj) + rawset(self.cells[{x=i,y=k}], obj, obj) elseif not region_new and region_old then - rawset(self.cells[{x=i,y=k}, obj, nil) + rawset(self.cells[{x=i,y=k}], obj, nil) end end end