summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/engine
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/util/ArrayListIt.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/util/ArrayListIt.java b/core/src/ch/asynk/rustanddust/engine/util/ArrayListIt.java
index c9128f2..7c1e404 100644
--- a/core/src/ch/asynk/rustanddust/engine/util/ArrayListIt.java
+++ b/core/src/ch/asynk/rustanddust/engine/util/ArrayListIt.java
@@ -44,6 +44,8 @@ public class ArrayListIt<E> extends ArrayList<E> implements Iterator, Iterable<E
@Override
public void remove()
{
- throw new RuntimeException("Iterator.remove is not allowed in here bitch!");
+ i -=1;
+ s -= 1;
+ remove(i);
}
}