summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Path.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Path.java b/core/src/ch/asynk/rustanddust/engine/Path.java
index 5df92ac..44b0a1f 100644
--- a/core/src/ch/asynk/rustanddust/engine/Path.java
+++ b/core/src/ch/asynk/rustanddust/engine/Path.java
@@ -36,6 +36,7 @@ public class Path implements Disposable, Pool.Poolable
this.cost = -1;
this.roadMarch = true;
this.tiles = null;
+ this.fitness = 0;
}
protected void init(int size)
@@ -44,6 +45,9 @@ public class Path implements Disposable, Pool.Poolable
tiles = new ArrayList<Tile>(size);
else
tiles. ensureCapacity(size);
+ cost = -1;
+ roadMarch = true;
+ fitness = 0;
}
@Override