fixed ConcurrentUpdateException with multi-threaded ai

This commit is contained in:
BetaSteward 2012-01-24 22:50:18 -05:00
parent e05024351f
commit 23616432e4
9 changed files with 51 additions and 28 deletions

View file

@ -227,7 +227,7 @@ public class SimulatedPlayer2 extends ComputerPlayer<SimulatedPlayer2> {
// Start with X = {1}
for (int i = 1; i < numAvailable; i++) {
Ability newAbility = ability.copy();
newAbility.addManaCost(new GenericManaCost(i));
newAbility.getManaCostsToPay().add(new GenericManaCost(i));
allActions.add(newAbility);
}
}