summaryrefslogtreecommitdiff
path: root/src/flooritemmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/flooritemmanager.cpp')
-rw-r--r--src/flooritemmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flooritemmanager.cpp b/src/flooritemmanager.cpp
index a190a168..9115b704 100644
--- a/src/flooritemmanager.cpp
+++ b/src/flooritemmanager.cpp
@@ -70,7 +70,7 @@ FloorItem *FloorItemManager::findByCoordinates(int x, int y) const
FloorItems::const_iterator i;
for (i = mFloorItems.begin(); i != mFloorItems.end(); i++)
{
- if ((*i)->getX() == x && (*i)->getY() == y)
+ if ((*i)->getTileX() == x && (*i)->getTileY() == y)
{
return *i;
}