From a80ea0fa1c9c6495a5386b946b202705fa5b8fc7 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Fri, 18 Mar 2022 22:01:03 +0100 Subject: [PATCH] fix doCarTurn in Game.java --- src/main/java/ch/zhaw/pm2/racetrack/Game.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/Game.java b/src/main/java/ch/zhaw/pm2/racetrack/Game.java index 0b46109..810ad78 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/Game.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/Game.java @@ -180,6 +180,7 @@ public class Game implements GameSpecification { } else { crashPosition = positionList.get(i - 1); } + break; } } if (crashPosition != null) {