Permalink
Browse files

Merge pull request #1199 from atlimit8/fix-soldier-with-salary-not-pu…

…rchasable

Fix monthly costs display for soldier types with salary but not purchasable.
  • Loading branch information...
SupSuper committed Oct 4, 2018
2 parents 74b62cc + e43bb99 commit 5ae3d796feaa5d740858217b86ad26f08f2eea6b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Basescape/MonthlyCostsState.cpp
@@ -129,7 +129,7 @@ MonthlyCostsState::MonthlyCostsState(Base *base) : _base(base)
for (std::vector<std::string>::const_iterator i = soldiers.begin(); i != soldiers.end(); ++i)
{
RuleSoldier *soldier = _game->getMod()->getSoldier(*i);
if (soldier->getBuyCost() != 0 && _game->getSavedGame()->isResearched(soldier->getRequirements()))
if (soldier->getSalaryCost() != 0 && _game->getSavedGame()->isResearched(soldier->getRequirements()))
{
std::wostringstream ss4;
ss4 << _base->getSoldierCount(*i);

0 comments on commit 5ae3d79

Please sign in to comment.