diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Engagement.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Engagement.java b/core/src/ch/asynk/tankontank/game/Engagement.java index 4b2edcd..b833c6e 100644 --- a/core/src/ch/asynk/tankontank/game/Engagement.java +++ b/core/src/ch/asynk/tankontank/game/Engagement.java @@ -24,6 +24,10 @@ public class Engagement implements Disposable, Pool.Poolable return e; } + public static void clearPool() + { + engagementPool.clear(); + } public Unit attacker; public Unit defender; diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index a78a4cf..ddcc237 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -115,6 +115,7 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS DiceAnimation.free(); PromoteAnimation.free(); FireAnimation.free(); + Engagement.clearPool(); } public void clearAll() |