aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 07774f4..66cf12c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -536,7 +536,7 @@ void logic(){
}
}
- if(e->isInside(ui::mouse) && player->isNear(*e)) {
+ if(e->isInside(ui::mouse) && player->isNear(e)) {
e->near = true;
if (e->type == OBJECTT)
ObjectSelected = true;
@@ -554,7 +554,7 @@ void logic(){
e->near = false;
}
} else if (e->type == MOBT) {
- e->near = player->isNear(*e);
+ e->near = player->isNear(e);
e->wander();
}
}