Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/shipmodel.cc')
-rw-r--r--src/game/base/shipmodel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/base/shipmodel.cc b/src/game/base/shipmodel.cc
index dcea80c..4d7af18 100644
--- a/src/game/base/shipmodel.cc
+++ b/src/game/base/shipmodel.cc
@@ -357,8 +357,6 @@ void ShipModel::apply(core::Entity *entity) const
if (radius())
entity->set_radius(radius());
-
- entity->set_info(this);
}
void ShipModel::apply(Ship *ship) const
@@ -366,6 +364,8 @@ void ShipModel::apply(Ship *ship) const
// apply ship model settings
apply (static_cast<core::Entity *>(ship));
+ ship->set_info(this);
+
ship->set_mass(mass());
ship->set_impulse_force(impulse_force());
ship->set_thrust_force(thrust_force());