summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-01 19:33:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-01 19:33:09 +0100
commitffc3966e1e995637a6d6b9cf5f7e0e88726a1d03 (patch)
tree4647e0e72072545ec9d25ac0db8d263eb3d30826 /core/src/ch/asynk/tankontank
parent5e699973edce0f580a599ea021e074102f5b87cc (diff)
downloadRustAndDust-ffc3966e1e995637a6d6b9cf5f7e0e88726a1d03.zip
RustAndDust-ffc3966e1e995637a6d6b9cf5f7e0e88726a1d03.tar.gz
Ctrl: keep a final ref to the Battle
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index bbc18a3..f7b1b9c 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -15,6 +15,7 @@ import ch.asynk.tankontank.game.states.StateAnimation;
public class Ctrl implements Disposable
{
private final TankOnTank game;
+ private final Battle battle;
public Map map;
public Hud hud;
@@ -37,6 +38,7 @@ public class Ctrl implements Disposable
public Ctrl(final TankOnTank game, final Battle battle)
{
this.game = game;
+ this.battle = battle;
this.cfg = game.config;
game.ctrl = this;