summaryrefslogtreecommitdiff
path: root/src/floor_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/floor_item.cpp')
-rwxr-xr-xsrc/floor_item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/floor_item.cpp b/src/floor_item.cpp
index 106ad210..4f2b84b3 100755
--- a/src/floor_item.cpp
+++ b/src/floor_item.cpp
@@ -86,7 +86,7 @@ void remove_floor_item(unsigned int id)
}
}
-unsigned int find_floor_item_by_cor(unsigned short x, unsigned short y)
+FloorItem* find_floor_item_by_cor(unsigned short x, unsigned short y)
{
FloorItems::iterator i;
@@ -96,7 +96,7 @@ unsigned int find_floor_item_by_cor(unsigned short x, unsigned short y)
if (floorItem->getX() == x && floorItem->getY() == y)
{
- return floorItem->getId();
+ return floorItem;
}
}