diff --git a/src/magic/model/mstatic/MagicPermanentStaticMap.java b/src/magic/model/mstatic/MagicPermanentStaticMap.java index a2b2c3f4dc..a4a5895c32 100644 --- a/src/magic/model/mstatic/MagicPermanentStaticMap.java +++ b/src/magic/model/mstatic/MagicPermanentStaticMap.java @@ -80,9 +80,10 @@ public class MagicPermanentStaticMap { final MagicPermanentStatic permanentStatic = iterator.next(); if (permanentStatic.getPermanent() == permanent && permanentStatic.getStatic() == mstatic) { iterator.remove(); - break; + return; } } + throw new RuntimeException("nothing to remove"); } public Collection remove(final MagicPermanent permanent, final Collection statics) {