AP_Scripting: Fix bug with local variable

This commit is contained in:
MatthewHampsey 2022-09-22 23:14:36 +10:00 committed by Andrew Tridgell
parent 7dbc1690e9
commit 10f355b05b

View File

@ -911,7 +911,7 @@ function update()
save_parameters(arg1, arg2)
done = true
else
local done = not do_path(command_table[cmd][1], initial_yaw_deg, arg1, arg2)
done = not do_path(command_table[cmd][1], initial_yaw_deg, arg1, arg2)
end
if done then
vehicle:nav_script_time_done(last_id)