summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index f052edd99..974eef64a 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -900,10 +900,8 @@ Being *ActorManager::findNearestByName(const std::string &name,
int dist = 0;
Being* closestBeing = nullptr;
- int x, y;
-
- x = localPlayer->getTileX();
- y = localPlayer->getTileY();
+ int x = localPlayer->getTileX();
+ int y = localPlayer->getTileY();
for_actorsm
{