aboutsummaryrefslogtreecommitdiff
path: root/Tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tile.cpp')
-rw-r--r--Tile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tile.cpp b/Tile.cpp
index 383ef05..a891f15 100644
--- a/Tile.cpp
+++ b/Tile.cpp
@@ -32,8 +32,8 @@ void Tile::step(Artist * artist) {
Tile * Tile::get_neighbor(int dx, int dy) {
Canvas & canvas = this->museum.canvas;
- int x = this->x + dx;
- int y = this->y + dy;
+ int x = this->data.x + dx;
+ int y = this->data.y + dy;
if (x < 0) return nullptr;
if (x >= canvas.data.columns) return nullptr;
if (y < 0) return nullptr;