- Fix possible infinite loop in unfreeze stack.

- Fix regular games not updating UI.
This commit is contained in:
jendave
2011-08-06 10:00:42 +00:00
parent 6ff3c26174
commit 1905a88271
2 changed files with 3 additions and 1 deletions

View File

@@ -35,8 +35,9 @@ public class MagicStack extends MyObservable {
public void unfreezeStack() {
frozen = false;
while (!frozenStack.isEmpty()) {
this.add(frozenStack.get(0));
SpellAbility sa = frozenStack.get(0);
frozenStack.remove(0);
this.add(sa);
}
}

View File

@@ -37,6 +37,7 @@ public abstract class Player extends MyObservable{
assignedDamage = 0;
lastDrawnCard = null;
bFirstTurn = true;
this.updateObservers();
}
public String getName() {