Fix concurrent modification exception

This commit is contained in:
drdev
2014-10-21 00:00:52 +00:00
parent 83e548d3a4
commit 51ffbcaeb7

View File

@@ -611,7 +611,7 @@ public class GameAction {
}
for (Player p : game.getPlayers()) {
for (Card c : p.getCardsIn(ZoneType.Battlefield)) {
for (Card c : p.getCardsIn(ZoneType.Battlefield).threadSafeIterator()) {
if (!c.getController().equals(p)) {
controllerChangeZoneCorrection(c);
affectedCards.add(c);