summaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell.c b/src/cell.c
index b90d1ee..543cea1 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -96,7 +96,7 @@ cell_find(Cell *this, int tile)
{
rfor (y, 0, this->height)
rfor (x, 0, this->width)
- if (this->data[x + y * this->width] == tile)
+ if (this->data[x + y * this->width] == tile + 1)
return I2(x, y);
return I2R(-1);
}