summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Ctrl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java
index ec974ca..4bb0893 100644
--- a/core/src/ch/asynk/rustanddust/game/Ctrl.java
+++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java
@@ -108,7 +108,7 @@ public class Ctrl implements Disposable
public void touchUp(float hudX, float hudY, float mapX, float mapY)
{
- if (!blockMap && (touchedHex == map.getHexAt(mapX, mapY)))
+ if (!blockMap && (touchedHex != null) && (touchedHex == map.getHexAt(mapX, mapY)))
state.touch(touchedHex);
}