mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
*Missed two synchronized blocks
This commit is contained in:
@@ -941,8 +941,12 @@ public class MagicStack extends MyObservable {
|
|||||||
* object.
|
* object.
|
||||||
*/
|
*/
|
||||||
public final void remove(final SpellAbilityStackInstance si) {
|
public final void remove(final SpellAbilityStackInstance si) {
|
||||||
|
synchronized (this.stack) {
|
||||||
this.getStack().remove(si);
|
this.getStack().remove(si);
|
||||||
|
}
|
||||||
|
synchronized (this.frozenStack) {
|
||||||
this.getFrozenStack().remove(si);
|
this.getFrozenStack().remove(si);
|
||||||
|
}
|
||||||
this.updateObservers();
|
this.updateObservers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user