From a9b9e8d5ef28a01292c778570b5c53c6e0967b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Tue, 29 Mar 2016 11:02:53 +0200 Subject: [PATCH] fixed Tile.removeItemFromTile() nullptr exception --- cicaprojekt/Tile.java | 1 - 1 file changed, 1 deletion(-) diff --git a/cicaprojekt/Tile.java b/cicaprojekt/Tile.java index 8f2b09c..b9381d8 100644 --- a/cicaprojekt/Tile.java +++ b/cicaprojekt/Tile.java @@ -46,7 +46,6 @@ public abstract class Tile { Menu.addTab(); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.removeItemFromTile()"); Pickable item = itemOnTile; - itemOnTile = null; System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Tile.removeItemFromTile()"); Menu.removeTab(); return item;