From 312b67edb89dbdb8605a6b537acca1b69add126d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 9 Jan 2016 12:02:26 +0100 Subject: Board: forgot to dispose() the animation that is finished --- core/src/ch/asynk/rustanddust/engine/Board.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/engine/Board.java b/core/src/ch/asynk/rustanddust/engine/Board.java index 21ad9b7..792dad0 100644 --- a/core/src/ch/asynk/rustanddust/engine/Board.java +++ b/core/src/ch/asynk/rustanddust/engine/Board.java @@ -257,8 +257,10 @@ public abstract class Board implements Disposable, Animation Iterator iter = animations.iterator(); while (iter.hasNext()) { Animation a = iter.next(); - if (a.animate(delta)) + if (a.animate(delta)) { iter.remove(); + a.dispose(); + } } if (over && (animations.size() == 0)) animationsOver(); -- cgit v1.1-2-g2b99