diff --git a/sonic-radiance.love/core/modules/world/baseworld.lua b/sonic-radiance.love/core/modules/world/baseworld.lua index 2ad0dce..e608183 100644 --- a/sonic-radiance.love/core/modules/world/baseworld.lua +++ b/sonic-radiance.love/core/modules/world/baseworld.lua @@ -142,14 +142,14 @@ function BaseWorld:getActorsInRect(x, y, w, h) local query = {} local x2, y2 = x + w, y + h for i,v in ipairs(self.actors) do - if (v.x >= x) and (v.x + v.w >= x1) and - (v.y >= y) and (v.y + v.h >= y1) then + if (v.x >= x) and (v.x + v.w >= x2) and + (v.y >= y) and (v.y + v.h >= y2) then table.insert(query, v) end end - return v + return query end