diff options
author | Stijn Buys <ingar@osirion.org> | 2011-08-07 12:15:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-08-07 12:15:25 +0000 |
commit | df1589141df27f3b29eba2d44df1aa5b2abe3420 (patch) | |
tree | 8e02e9c43e7726448f90e03aeb9da0f299152c3b | |
parent | 54dbdc1be0a7eda45f7f8209388cf26a5241c688 (diff) |
Point an ejected cargopod's info to the cargo info.
-rw-r--r-- | src/game/base/cargo.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/base/cargo.cc b/src/game/base/cargo.cc index c07aada..fd1ee3f 100644 --- a/src/game/base/cargo.cc +++ b/src/game/base/cargo.cc @@ -372,6 +372,7 @@ void Cargo::eject(core::EntityControlable *ejector, const int amount) pod->set_location(ejector->location() + ejector->axis().up() * (ejector->radius() + pod->radius())); pod->set_axis(ejector->axis()); pod->set_zone(ejector->zone()); + pod->set_info(item->info()); // add loot to inventory pod->set_inventory(new core::Inventory()); |