forked from External/mage
performance: improved CPU/memory usage with copy of cost's targets (related to #11285), added runtime check for wrong targets usage
This commit is contained in:
parent
d6c858ecaf
commit
ddc1ec8ef8
32 changed files with 173 additions and 107 deletions
|
|
@ -142,7 +142,7 @@ public class OrCost implements Cost {
|
|||
if (selectedCost != null) {
|
||||
return selectedCost.getTargets();
|
||||
}
|
||||
return null;
|
||||
return new Targets().withReadOnly();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue