Fixed NullPointerException
This commit is contained in:
parent
4a5e5501e5
commit
d32861393c
@ -25,6 +25,7 @@ public class Map {
|
||||
moveToCells = new LinkedList<EventMoveToCell>();
|
||||
block = new LinkedList<Block>();
|
||||
isBlocked = false;
|
||||
imageCell = new ImageCell();
|
||||
|
||||
TypeOfCell type;
|
||||
if (isBlocked)
|
||||
@ -50,6 +51,7 @@ public class Map {
|
||||
block = new LinkedList<Block>();
|
||||
mapArray = new TypeOfCell[height][width];
|
||||
this.isBlocked = isBlocked;
|
||||
imageCell = new ImageCell();
|
||||
|
||||
TypeOfCell type;
|
||||
if (isBlocked)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user