typo in var name

This commit is contained in:
TenPlus1 2017-04-08 18:09:06 +01:00
parent 13fcf68191
commit 8ed3672fb1
1 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,9 @@ function line_of_sight(self, pos1, pos2, stepsize)
-- NaN checks
if d == 0
or npos.x ~= npos.x
or npos.y ~= npos.y
or npos.z ~= npos.z then
or npos1.x ~= npos1.x
or npos1.y ~= npos1.y
or npos1.z ~= npos1.z then
return false
end