summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-03 14:25:04 +0200
committeremkael <emkael@tlen.pl>2016-06-03 14:25:04 +0200
commit976a36715880874f0286cfb1cf8d6e4486a05831 (patch)
tree2411af70a702ed179341e07b176026366d4b73f9
parentdfe4c3b00198172c0f4bee6b26ce3962c69e4ccd (diff)
* lowest of most profitable sacrifices
-rw-r--r--src/ParContract.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ParContract.cs b/src/ParContract.cs
index d767f0e..9255ca5 100644
--- a/src/ParContract.cs
+++ b/src/ParContract.cs
@@ -212,7 +212,8 @@ namespace BCDD
possibleDefense = possibleDefense.FindAll(x => x.Score == optimumDefense.Score);
foreach (ParContract defense in possibleDefense)
{
- if (defense.Higher(optimumDefense))
+ // Lowest from the most profitable sacrifices
+ if (optimumDefense.Higher(defense))
{
optimumDefense = defense;
}