diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-07 09:39:22 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-07 09:39:22 +0200 |
commit | cd112459ffe6252e88adc0292bdc98804a022cd1 (patch) | |
tree | 66b94c9d2cfdc7b775298ce9d0b12747ac15a46f /core/src/ch/asynk/rustanddust | |
parent | ea864f41947757d82c7cff199373fc0558309ab2 (diff) | |
download | RustAndDust-cd112459ffe6252e88adc0292bdc98804a022cd1.zip RustAndDust-cd112459ffe6252e88adc0292bdc98804a022cd1.tar.gz |
PathBuilder: keepOnly() must remove from paths not getPaths()
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 2 |
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) |