From f46176716db6cd21ae1ae9a6a7d1247bf4d5be93 Mon Sep 17 00:00:00 2001 From: Ryan Cole Date: Mon, 17 Mar 2014 20:53:46 +1300 Subject: [PATCH] small typo fix --- shapes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes.lua b/shapes.lua index 9b4a48d..29fb01d 100644 --- a/shapes.lua +++ b/shapes.lua @@ -247,7 +247,7 @@ end function CircleShape:intersectsRay(x,y, dx,dy) local tmin = math_huge - for _, t in ipaits(self:intersectionsWithRay(x,y,dx,dy)) do + for _, t in ipairs(self:intersectionsWithRay(x,y,dx,dy)) do tmin = math_min(t, tmin) end return tmin ~= math_huge, tmin