diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 14:59:40 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-08 15:08:00 +0100 |
commit | b62827b9197dea44bc90498a72e732084b3e028f (patch) | |
tree | 194fbc10dbe35ef36d13cb8dc9a45f1c55ea56ab /core/src/ch/asynk/tankontank | |
parent | 15a8de85f11d30573a26fe072e67aa8baa360ba9 (diff) | |
download | RustAndDust-b62827b9197dea44bc90498a72e732084b3e028f.zip RustAndDust-b62827b9197dea44bc90498a72e732084b3e028f.tar.gz |
PossiblePaths: fix getPath to return asked path not always the first
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PossiblePaths.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java index 30f63fd..fb941ec 100644 --- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java +++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java @@ -224,8 +224,8 @@ public class PossiblePaths implements Iterable<Vector3> private List<Tile> getPath(int i) { if (ctrlTiles.size() == 0) - return paths.get(0); - return filteredPaths.get(0); + return paths.get(i); + return filteredPaths.get(i); } public int pathSteps(int idx) |