summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:39:22 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:39:22 +0200
commitcd112459ffe6252e88adc0292bdc98804a022cd1 (patch)
tree66b94c9d2cfdc7b775298ce9d0b12747ac15a46f /core
parentea864f41947757d82c7cff199373fc0558309ab2 (diff)
downloadRustAndDust-cd112459ffe6252e88adc0292bdc98804a022cd1.zip
RustAndDust-cd112459ffe6252e88adc0292bdc98804a022cd1.tar.gz
PathBuilder: keepOnly() must remove from paths not getPaths()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java2
1 files changed, 1 insertions, 1 deletions
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)