aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Map.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/Map.java')
-rw-r--r--src/main/java/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/Map.java b/src/main/java/Map.java
index 031e922..db686f6 100644
--- a/src/main/java/Map.java
+++ b/src/main/java/Map.java
@@ -23,6 +23,6 @@ public class Map {
/* accessors */
public Tile getTile(int x, int y) {
- return this.grid[y * this.size.width + y];
+ return this.grid[y * this.size.width + x];
}
}