summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-18 19:57:39 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-18 19:57:39 +0200
commit07f901d3de16d25dcd8d21f205ba891e7fa337b0 (patch)
tree6ae5124217cffbb2aa7a48ac9fd84347bb0d52ef /core
parent2420e7a8cb388a36094ce846760fa3a18bab2699 (diff)
downloadgdx-boardgame-07f901d3de16d25dcd8d21f205ba891e7fa337b0.zip
gdx-boardgame-07f901d3de16d25dcd8d21f205ba891e7fa337b0.tar.gz
Path : set to = null, when end is reached
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Path.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Path.java b/core/src/ch/asynk/gdx/boardgame/Path.java
index 97aaabe..47ea039 100644
--- a/core/src/ch/asynk/gdx/boardgame/Path.java
+++ b/core/src/ch/asynk/gdx/boardgame/Path.java
@@ -94,6 +94,7 @@ public class Path extends IterableArray<Tile> implements Disposable, Pool.Poolab
}
return false;
}
+ to = null;
return true;
}
}