From 6285cfe2154fd6eb78d08bdf23281984692db9bd Mon Sep 17 00:00:00 2001 From: Leonardo Brandenberger Date: Thu, 10 Mar 2022 15:39:58 +0100 Subject: [PATCH] merged track into game --- src/main/java/ch/zhaw/pm2/racetrack/Track.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/Track.java b/src/main/java/ch/zhaw/pm2/racetrack/Track.java index e89b960..e72fb2c 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/Track.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/Track.java @@ -73,6 +73,7 @@ public class Track implements TrackSpecification { * @throws InvalidTrackFormatException if the track file contains invalid data (no tracklines, ...) */ public Track(File trackFile) throws FileNotFoundException, InvalidTrackFormatException { + track = new ArrayList<>(); cars = new ArrayList<>(); finishLine = new ArrayList<>();