From 07f901d3de16d25dcd8d21f205ba891e7fa337b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 18 Oct 2018 19:57:39 +0200 Subject: Path : set to = null, when end is reached --- core/src/ch/asynk/gdx/boardgame/Path.java | 1 + 1 file changed, 1 insertion(+) 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 implements Disposable, Pool.Poolab } return false; } + to = null; return true; } } -- cgit v1.1-2-g2b99