diff options
Diffstat (limited to 'Tile.cpp')
-rw-r--r-- | Tile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |