summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-11 14:48:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-11 14:48:23 +0200
commitf6401947a5073399c768631c34a101673eea7492 (patch)
tree93e6f276270ec6e1bed57e8182a6a0013d4e7d45 /core/src
parent79cc37d1dd46569f3c5e5a3cef0727494d6b24c6 (diff)
downloadRustAndDust-f6401947a5073399c768631c34a101673eea7492.zip
RustAndDust-f6401947a5073399c768631c34a101673eea7492.tar.gz
Unit: Unit.clear() sets unitId to 1
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java2
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) {