From cd112459ffe6252e88adc0292bdc98804a022cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 7 Apr 2016 09:39:22 +0200 Subject: PathBuilder: keepOnly() must remove from paths not getPaths() --- core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index e89e237..9efd699 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -195,7 +195,7 @@ public class PathBuilder implements Disposable private void keepOnly(Path path) { - getPaths().remove(path); + paths.remove(path); clearPaths(); paths.add(path); for (Tile tile : path.tiles) -- cgit v1.1-2-g2b99