Skip to content

Commit

Permalink
Modders do have a big imagination
Browse files Browse the repository at this point in the history
  • Loading branch information
MeridianOXC committed Feb 4, 2018
1 parent 805c598 commit 0838400
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Mod/RuleBaseFacility.cpp
Expand Up @@ -120,11 +120,7 @@ void RuleBaseFacility::load(const YAML::Node &node, Mod *mod, int listOrder)
cost.first = i->second["build"].as<int>(cost.first);
cost.second = i->second["refund"].as<int>(cost.second);

if (cost.first < cost.second)
{
cost.second = cost.first;
}
if (cost.first <= 0)
if (cost.first <= 0 && cost.second <= 0)
{
_buildCostItems.erase(id);
}
Expand Down

0 comments on commit 0838400

Please sign in to comment.