summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-01 10:04:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-01 10:04:52 +0100
commit597d1eb3a462aa31f20a981fe7c0fb183d5524fe (patch)
tree4f3a2ada8abac971007ab2afeec941d11fb3904d /core
parent4d8a62502c87c283c7dfd53a2ce6a9ddbea403e6 (diff)
downloadRustAndDust-597d1eb3a462aa31f20a981fe7c0fb183d5524fe.zip
RustAndDust-597d1eb3a462aa31f20a981fe7c0fb183d5524fe.tar.gz
fix ugly null pointer bug in Map5...
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Zone.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Zone.java b/core/src/ch/asynk/rustanddust/game/Zone.java
index 43aabbe..6acecec 100644
--- a/core/src/ch/asynk/rustanddust/game/Zone.java
+++ b/core/src/ch/asynk/rustanddust/game/Zone.java
@@ -11,6 +11,8 @@ public class Zone extends TileSet
public Zone(Map map, int n)
{
super(map, n);
+ this.allowedMoves = Orientation.KEEP.s;
+ this.orientation = Orientation.KEEP;
}
public void add(int col, int row)