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')
-rw-r--r--src/game/base/ship.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc
index 16c2ea8..e800c93 100644
--- a/src/game/base/ship.cc
+++ b/src/game/base/ship.cc
@@ -78,10 +78,15 @@ Ship::Ship(core::Player *owner, const ShipModel *shipmodel) : core::EntityContro
set_owner(owner);
get_color().assign(owner->color());
get_color_second().assign(owner->color_second());
+
std::string str(aux::text_strip(owner->name()));
aux::to_label(str);
set_label(str);
+ str.assign(aux::text_strip(owner->name()));
+ aux::text_strip(str);
+ set_name(str);
+
// add an inventory
add_inventory();
inventory()->set_capacity(ship_shipmodel->maxcargo());