summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 38c49112..81bf7313 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -449,7 +449,7 @@ bool Map::occupied(int x, int y) const
const Being *being = *i;
// job 45 is a portal, they don't collide
- if (being->mX == x && being->mY == y && being->mJob != 45)
+ if (being->getTileX() == x && being->getTileY() == y && being->mJob != 45)
return true;
}