From 7f5456dd68bc60febcd6ee246782da9d51aaaa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 7 Apr 2016 09:32:49 +0200 Subject: PathBuilder: always call size(), maybe filtered are no more filtered because of a call to keepOnly() --- core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 6 +++--- 1 file 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) -- cgit v1.1-2-g2b99