AP_Scripting: treat zero loops as 1

This commit is contained in:
Andrew Tridgell 2022-11-01 08:32:12 +11:00
parent 6c785715fa
commit 6b0b3b1a05

View File

@ -710,7 +710,7 @@ function climbing_circle(radius, height, bank_angle, arg4)
end
function loop(radius, bank_angle, num_loops, arg4)
if not num_loops then
if not num_loops or num_loops <= 0 then
num_loops = 1
end
return make_paths("loop", {