summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 6c46d636..74197a14 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -322,8 +322,7 @@ Gui::mousePress(int mx, int my, int button)
{
// Find the being nearest to the clicked position
Being *target = beingManager->findNearestLivingBeing(
- player_node->mX,
- player_node->mY,
+ tilex, tiley,
20, Being::MONSTER);
if (target)