diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 23:20:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 23:20:06 +0200 |
commit | 61035b776b881050625ac5b1789f03aeb4ae4e5d (patch) | |
tree | 3d0a285d9d715c43df69db5a6e0a8a8b2cdc32a8 /core/src/ch/asynk | |
parent | 97f11378f27303addd8605a50d6a014267bd58fc (diff) | |
download | RustAndDust-61035b776b881050625ac5b1789f03aeb4ae4e5d.zip RustAndDust-61035b776b881050625ac5b1789f03aeb4ae4e5d.tar.gz |
fix GameScreen null draggedTile.setZIndex
Diffstat (limited to 'core/src/ch/asynk')
-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; } |