diff --git a/src/main/java/Map.java b/src/main/java/Map.java index d5203e5..de970c9 100644 --- a/src/main/java/Map.java +++ b/src/main/java/Map.java @@ -25,6 +25,7 @@ public class Map { moveToCells = new LinkedList(); block = new LinkedList(); isBlocked = false; + imageCell = new ImageCell(); TypeOfCell type; if (isBlocked) @@ -50,6 +51,7 @@ public class Map { block = new LinkedList(); mapArray = new TypeOfCell[height][width]; this.isBlocked = isBlocked; + imageCell = new ImageCell(); TypeOfCell type; if (isBlocked)