Skip to content

Commit

Permalink
Some live aliens don't have a corresponding live item, e.g. zombies
Browse files Browse the repository at this point in the history
  • Loading branch information
MeridianOXC committed Jul 8, 2020
1 parent 9f02dd1 commit 20ff295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Battlescape/DebriefingState.cpp
Expand Up @@ -2396,7 +2396,7 @@ void DebriefingState::recoverAlien(BattleUnit *from, Base *base)
{
// Transform a live alien into one or more recovered items?
RuleItem* liveAlienItemRule = _game->getMod()->getItem(from->getType());
if (!liveAlienItemRule->getRecoveryTransformations().empty())
if (liveAlienItemRule && !liveAlienItemRule->getRecoveryTransformations().empty())
{
addItemsToBaseStores(liveAlienItemRule, base, 1, true);

Expand Down

0 comments on commit 20ff295

Please sign in to comment.