diff --git a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java index fdf14dd..2953ef7 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java @@ -20,10 +20,10 @@ public class MoveListStrategy implements MoveStrategy { private final List moveList; private int pointer; - public MoveListStrategy(String path) throws FileNotFoundException{ + public MoveListStrategy(File moveListFile) throws FileNotFoundException{ moveList = new ArrayList<>(); pointer = -1; - readFile(new File(path)); + readFile(moveListFile); } /**