diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-05 16:42:01 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-05 16:42:01 +0000 |
commit | 058f40a2e6dfd7e3498e7506c3ca82606f9b792e (patch) | |
tree | e4920eefb4c3fa1073d6604845724c4f56c23d26 /src/game/base/ship.cc | |
parent | 9a16c4b433bba4837bc98a90b446aa0726f0d447 (diff) |
Have NPCs get cargo.
Diffstat (limited to 'src/game/base/ship.cc')
-rw-r--r-- | src/game/base/ship.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index cdc860a..5df0ced 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -88,12 +88,12 @@ Ship::Ship(core::Player *owner, const ShipModel *shipmodel) : core::EntityContro 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()); } + // add an inventory + add_inventory(); + inventory()->set_capacity(ship_shipmodel->maxcargo()); + if (model()) { add_slots(); slots()->load(model()); |