Skip to content

Commit 92ad60c

Browse files
committed
i don't think that needs to be there
1 parent 57338e7 commit 92ad60c

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/Battlescape/DebriefingState.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,10 +1628,7 @@ void DebriefingState::recoverItems(std::vector<BattleItem*> *from, Base *base)
16281628
if (corpseUnit->getStatus() == STATUS_DEAD)
16291629
{
16301630
base->getStorageItems()->addItem(corpseUnit->getArmor()->getCorpseGeoscape(), 1);
1631-
if ((*it)->getRules()->getRecoveryPoints())
1632-
{
1633-
addStat("STR_ALIEN_CORPSES_RECOVERED", 1, (*it)->getRules()->getRecoveryPoints());
1634-
}
1631+
addStat("STR_ALIEN_CORPSES_RECOVERED", 1, (*it)->getRules()->getRecoveryPoints());
16351632
}
16361633
else if (corpseUnit->getStatus() == STATUS_UNCONSCIOUS ||
16371634
// or it's in timeout because it's unconscious from the previous stage
@@ -1720,13 +1717,13 @@ void DebriefingState::recoverAlien(BattleUnit *from, Base *base)
17201717
if (!from->getArmor()->getCorpseBattlescape().empty())
17211718
{
17221719
RuleItem *corpseRule = _game->getMod()->getItem(from->getArmor()->getCorpseBattlescape().front());
1723-
if (corpseRule && corpseRule->getRecoveryPoints())
1720+
if (corpseRule && corpseRule->isRecoverable())
17241721
{
17251722
addStat("STR_ALIEN_CORPSES_RECOVERED", 1, corpseRule->getRecoveryPoints());
1723+
std::string corpseItem = from->getArmor()->getCorpseGeoscape();
1724+
base->getStorageItems()->addItem(corpseItem, 1);
17261725
}
17271726
}
1728-
std::string corpseItem = from->getArmor()->getCorpseGeoscape();
1729-
base->getStorageItems()->addItem(corpseItem, 1);
17301727
}
17311728
else
17321729
{

0 commit comments

Comments
 (0)