Skip to content
Snippets Groups Projects
Commit b36f39d7 authored by edani95's avatar edani95
Browse files

Game begin map init bug fix

parent 31e890bc
No related branches found
No related tags found
1 merge request!50Game begin map init bug fix
...@@ -18,11 +18,10 @@ public class GameController { ...@@ -18,11 +18,10 @@ public class GameController {
private View view; private View view;
private ArrayList<IElement>[][] map; private ArrayList<IElement>[][] map;
@SuppressWarnings("unchecked")
public GameController(View view, int width, int height) public GameController(View view, int width, int height)
{ {
this.view = view; this.view = view;
map = new ArrayList[width][height]; map = InitController.map;
} }
public void startGameProcess() throws GameRunningException public void startGameProcess() throws GameRunningException
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment