Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-08-07 12:15:25 +0000
committerStijn Buys <ingar@osirion.org>2011-08-07 12:15:25 +0000
commitdf1589141df27f3b29eba2d44df1aa5b2abe3420 (patch)
tree8e02e9c43e7726448f90e03aeb9da0f299152c3b /src
parent54dbdc1be0a7eda45f7f8209388cf26a5241c688 (diff)
Point an ejected cargopod's info to the cargo info.
Diffstat (limited to 'src')
-rw-r--r--src/game/base/cargo.cc1
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());