summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:32:49 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:32:49 +0200
commit7f5456dd68bc60febcd6ee246782da9d51aaaa72 (patch)
tree064a0a1f98ee16761d568b9baf030b354a06ece4
parent44c3122312d171e91a67f2374a4c3241d69964eb (diff)
downloadRustAndDust-7f5456dd68bc60febcd6ee246782da9d51aaaa72.zip
RustAndDust-7f5456dd68bc60febcd6ee246782da9d51aaaa72.tar.gz
PathBuilder: always call size(), maybe filtered are no more filtered because of a call to keepOnly()
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
index a663d6a..50e4e79 100644
--- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
+++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
@@ -129,7 +129,7 @@ public class PathBuilder implements Disposable
keepOnly(good);
}
- return ps.size();
+ return size();
}
public int chooseShortest()
@@ -145,7 +145,7 @@ public class PathBuilder implements Disposable
keepOnly(good);
}
- return ps.size();
+ return size();
}
public int chooseExit(Orientation o)
@@ -177,7 +177,7 @@ public class PathBuilder implements Disposable
}
to = board.getAdjTileAt(to, o);
- return ps.size();
+ return size();
}
private Path best(Path a, Path b)