Skip to content

Commit 06f2e7b

Browse files
committed
added checking to MonthlyCostState: is aircraft researched?
1 parent 02eca29 commit 06f2e7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Basescape/MonthlyCostsState.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ MonthlyCostsState::MonthlyCostsState(Game *game, Base *base) : State(game), _bas
118118
for (std::vector<std::string>::const_iterator i = crafts.begin(); i != crafts.end(); ++i)
119119
{
120120
RuleCraft *craft = _game->getRuleset()->getCraft(*i);
121-
if (craft->getRentCost() > 0)
121+
if (craft->getRentCost() > 0 && _game->getSavedGame()->isResearched(_game->getRuleset()->getUfopaediaArticle(craft->getType())->requires))
122122
{
123123
std::wstringstream ss2;
124124
ss2 << _base->getCraftCount((*i));

0 commit comments

Comments
 (0)