Fix love.math.noise(nil) to error instead of returning nil.

This commit is contained in:
Alex Szpakowski
2016-10-20 22:57:12 -03:00
parent 42be56858b
commit a9593d926e
+1 -1
View File
@@ -88,7 +88,7 @@ function love_math.noise(x, y, z, w)
return tonumber(ffifuncs.noise3(x, y, z)) return tonumber(ffifuncs.noise3(x, y, z))
elseif y ~= nil then elseif y ~= nil then
return tonumber(ffifuncs.noise2(x, y)) return tonumber(ffifuncs.noise2(x, y))
elseif x ~= nil then else
return tonumber(ffifuncs.noise1(x)) return tonumber(ffifuncs.noise1(x))
end end
end end