diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-11 14:48:23 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-11 14:48:23 +0200 |
commit | f6401947a5073399c768631c34a101673eea7492 (patch) | |
tree | 93e6f276270ec6e1bed57e8182a6a0013d4e7d45 /core/src/ch/asynk/rustanddust | |
parent | 79cc37d1dd46569f3c5e5a3cef0727494d6b24c6 (diff) | |
download | RustAndDust-f6401947a5073399c768631c34a101673eea7492.zip RustAndDust-f6401947a5073399c768631c34a101673eea7492.tar.gz |
Unit: Unit.clear() sets unitId to 1
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Unit.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java index 43125a2..36bea6b 100644 --- a/core/src/ch/asynk/rustanddust/game/Unit.java +++ b/core/src/ch/asynk/rustanddust/game/Unit.java @@ -29,7 +29,7 @@ public class Unit extends HeadedPawn public static int unitId = 1; private static Collection<Unit> units = new IterableSet<Unit>(20); - public static void clear() { units.clear(); } + public static void clear() { unitId = 1; units.clear(); } public static Unit findById(int id) { for (Unit u : units) { |