Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/base/ship.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc
index bcaae46..7c9de1f 100644
--- a/src/game/base/ship.cc
+++ b/src/game/base/ship.cc
@@ -495,7 +495,12 @@ void Ship::set_zone(core::Zone *zone)
void Ship::set_autopilot_target(core::Entity *target)
{
- ship_autopilot_target = target;
+ if (ship_autopilot_target != target) {
+ if (owner()) {
+ owner()->set_mission_target(target);
+ }
+ ship_autopilot_target = target;
+ }
}
void Ship::set_dock(core::Entity *dock)