summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 9f8c03b..5670c1b 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -65,7 +65,7 @@ public class Unit extends HeadedPawn
// hard tager
public Unit(Army army, UnitId id, UnitType type, int range, int defense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays)
{
- super(army, unit, head, pawns, overlays);
+ this(army, unit, head, pawns, overlays);
this.rng = range;
this.def = defense;
this.mp = movementPoints;
@@ -79,7 +79,7 @@ public class Unit extends HeadedPawn
// soft tager
public Unit(Army army, UnitId id, UnitType type, int range, int defense, int concealedDefense, int movementPoints, String unit, String head, TextureAtlas pawns, TextureAtlas overlays)
{
- super(army, unit, head, pawns, overlays);
+ this(army, unit, head, pawns, overlays);
this.rng = range;
this.def = defense;
this.cdef = concealedDefense;