From 0e195240e5793c4bc71a694368122bc21660a21d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 12 Jul 2011 11:17:54 +0000 Subject: Corrected a segfault when launching in a newly purchased ship --- src/game/base/shipmodel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') 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 -- cgit v1.2.3