Code Cleanup

This commit is contained in:
romanschenk37
2022-03-25 21:14:18 +01:00
parent e2c6b5cb49
commit 70a2179cce
2 changed files with 5 additions and 1 deletions
@@ -94,7 +94,7 @@ public class Game implements GameSpecification {
}
if(selectedFile != null){
try {
moveStrategy = new PathFollowerMoveStrategy(selectedFile, track.getCarPos(currentCarIndex));
moveStrategy = new PathFollowerMoveStrategy(selectedFile, track.getCarPos(i));
} catch (FileNotFoundException e) {
userInterface.printInformation("There is no Point-List implemented. Choose another Strategy!");
}