summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp
index e6435487..80de74e1 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -87,8 +87,7 @@ unsigned int findNpc(unsigned short x, unsigned short y)
for (i = beings.begin(); i != beings.end(); i++) {
Being *being = (*i);
// Check if is a NPC (only low job ids)
- if (being->job >= 46 && being->job <= 125 &&
- being->x == x && being->y == y)
+ if (being->isNpc() && being->x == x && being->y == y)
{
return being->id;
}