From ddffc0f6552d35fa9926ac0b0d81703250a5025a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Tue, 29 Mar 2016 11:09:12 +0200 Subject: [PATCH] fixed nullptrexception on ONeill.boxLift() & ONeill.move() static attribute Field.testfield now initializes properly --- cicaprojekt/Field.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicaprojekt/Field.java b/cicaprojekt/Field.java index 6e9eb75..02cec29 100644 --- a/cicaprojekt/Field.java +++ b/cicaprojekt/Field.java @@ -4,7 +4,7 @@ import java.util.HashMap; public class Field extends cicaprojekt.Tile { - public static Field testField; + public static Field testField = new Field(); public Field() { setItemOnTile(new Box());