Fixing local variable

This commit is contained in:
F.H 2016-01-25 21:06:38 +01:00
parent eac8874ef9
commit 73a9456bb5

View File

@ -421,7 +421,7 @@ end
function Polygon:intersectionsWithRay(x,y, dx,dy) function Polygon:intersectionsWithRay(x,y, dx,dy)
local nx,ny = vector.perpendicular(dx,dy) local nx,ny = vector.perpendicular(dx,dy)
local wx,xy,det local wx,wy,det
local ts = {} -- ray parameters of each intersection local ts = {} -- ray parameters of each intersection
local q1,q2 = nil, self.vertices[#self.vertices] local q1,q2 = nil, self.vertices[#self.vertices]