summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Engagement.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java1
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()