Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/base/ship.cc3
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);