Stargate isn't initialized with nullpointers now
This commit is contained in:
parent
07d7934524
commit
5ece8b8f27
@ -6,13 +6,15 @@ public class Stargate {
|
||||
|
||||
public static final Stargate yellowStargate = new Stargate();
|
||||
public static final Stargate blueStargate = new Stargate();
|
||||
public final Stargate other = null; /*null, hogy ne sírjon*/
|
||||
public /*final*/ Stargate other; //TODO find better ways to do this
|
||||
|
||||
private cicaprojekt.Wall currentWall;
|
||||
|
||||
public static void init() {
|
||||
Menu.addTab();
|
||||
System.out.println(">" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
||||
yellowStargate.other = blueStargate;
|
||||
blueStargate.other = yellowStargate;
|
||||
System.out.println("<" + "[" + ":" + "Stargate" + "]" + Menu.tabulator + "Stargate.init()");
|
||||
Menu.removeTab();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user