Skip to content

Commit 2af31c5

Browse files
committed
#1956 fixed ai cost filter
1 parent f20336f commit 2af31c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ai/productionSystem/simpleproductionsystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ void SimpleProductionSystem::getBuildDistribution(std::vector<CurrentBuildDistri
573573
while(i < item.distribution.unitIds.size())
574574
{
575575
qint32 cost = item.distribution.units[i]->getUnitCosts();
576-
if (cost >= minBaseCost ||
576+
if (cost >= minBaseCost &&
577577
cost <= maxBaseCost)
578578
{
579579
++i;

0 commit comments

Comments
 (0)