From 448e34e869cd099f1c6fe3426ae7c294be475389 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Fri, 25 Mar 2022 00:10:07 +0100 Subject: [PATCH] fixed PathFinderMoveStrategy --- .../ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java b/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java index 6d8dc0e..ed844fe 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/PathFinderMoveStrategy.java @@ -142,7 +142,7 @@ public class PathFinderMoveStrategy implements MoveStrategy{ @Override - public PositionVector.Direction nextMove() { + public PositionVector.Direction nextMove() { //TODO check for crash and recreate movelist if crash pointer += 1; if (pointer < moveList.size()) { return moveList.get(pointer);