diff options
-rw-r--r-- | src/game/base/ship.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index e9d9b54..7fae769 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -1475,8 +1475,9 @@ void Ship::frame_autopilot_dock(const unsigned long elapsed, core::Entity *targe race->func_dock(this); } - + unset_autopilot_flag(AutoPilotEnabled); unset_autopilot_flag(AutoPilotDock); + set_autopilot_target(0); return; } else { set_dock(target); |