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/shipmodel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/base/shipmodel.cc b/src/game/base/shipmodel.cc
index 25c2268..85efcc1 100644
--- a/src/game/base/shipmodel.cc
+++ b/src/game/base/shipmodel.cc
@@ -329,9 +329,9 @@ void ShipModel::buy(core::EntityControlable *buyer, core::Entity *seller)
Ship * ship = new Ship(player, this);
ship->set_zone(seller->zone());
ship->get_location().assign(seller->location());
- ship->set_state(core::Entity::Docked);
ship->get_axis().assign(seller->axis());
ship->get_axis().change_direction(180.0f);
+ ship->set_dock(seller);
ship->reset();
// transfer inventory