summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 5c275b3f6..e2b126065 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2742,10 +2742,10 @@ bool LocalPlayer::checAttackPermissions(const Being *const target)
case 0:
return true;
case 1:
- return !(player_relations.getRelation(target->mName)
+ return !(playerRelations.getRelation(target->mName)
== Relation::FRIEND);
case 2:
- return player_relations.checkBadRelation(target->mName);
+ return playerRelations.checkBadRelation(target->mName);
default:
case 3:
return false;