summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 12:35:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 12:35:24 +0100
commite6c5e5457bbc5a4cc0b146c40c2b4de1e5ee9fae (patch)
treec1016b37ee381420af929d67b0de060807dd9530 /core/src/ch
parentde7a33881b3f20cf29a36175831409411ff8fe56 (diff)
downloadRustAndDust-e6c5e5457bbc5a4cc0b146c40c2b4de1e5ee9fae.zip
RustAndDust-e6c5e5457bbc5a4cc0b146c40c2b4de1e5ee9fae.tar.gz
Map: clear Engagement Pool at dispose
Diffstat (limited to 'core/src/ch')
-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()