diff options
Diffstat (limited to 'src/game/base/ship.cc')
-rw-r--r-- | src/game/base/ship.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 1aca505..e5ae2fe 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -357,11 +357,11 @@ void Ship::set_dock(core::Entity *dock) // if the dock is not owned by a player. set it as spawn + set_state(core::Entity::Docked); const core::Player *owner = (dock->type() == core::Entity::Controlable ? static_cast<core::EntityControlable *>(dock)->owner() : 0 ); - if (!owner) + if (!owner) { set_spawn(dock); - - set_state(core::Entity::Docked); + } } void Ship::launch() |