Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/base/ship.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc
index b1e0574..78e6973 100644
--- a/src/game/base/ship.cc
+++ b/src/game/base/ship.cc
@@ -445,6 +445,7 @@ void Ship::explode()
}
if (percentage > 0) {
+ assert(inventory());
core::Inventory::Items::iterator it = inventory()->items().begin();
while (it != inventory()->items().end()) {
if ((*it)->info()->type() == Cargo::infotype()) {
@@ -460,6 +461,7 @@ void Ship::explode()
}
if (!owner()) {
+ assert(inventory());
core::Inventory::Items::iterator it = inventory()->items().begin();
while (it != inventory()->items().end()) {
if ((*it)->info()->type() == Weapon::infotype()) {