Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atruebin committed Jun 5, 2019
1 parent dbb9182 commit 9353b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/examples/eng/example_path_en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Path:eventHandler( e )
local change_state = false
local obj_state = self.point[self.state]

if e == Ev.ALTITUDE_REACHED and obj_state.takeoff then
if e == Ev.TAKEOFF_COMPLETE and obj_state.takeoff then
change_state = true
elseif e == Ev.POINT_REACHED and obj_state.waypoint then
change_state = true
Expand Down

0 comments on commit 9353b01

Please sign in to comment.