From f6401947a5073399c768631c34a101673eea7492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 11 May 2016 14:48:23 +0200 Subject: Unit: Unit.clear() sets unitId to 1 --- core/src/ch/asynk/rustanddust/game/Unit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 units = new IterableSet(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) { -- cgit v1.1-2-g2b99