diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index 50c46ce..571123e 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -116,7 +116,7 @@ public class GameScreen extends AbstractScreen cam.unproject(touchPos.set(x, y, 0)); map.getCellAt(cell, touchPos.x, touchPos.y); draggedTile = map.getTopTileAt(cell); - draggedTile.setZIndex(Tile.DRAGGED_Z_INDEX); + if (draggedTile != null) draggedTile.setZIndex(Tile.DRAGGED_Z_INDEX); } return true; } |