aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index f164a5ee895..a9f975b1254 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9767,7 +9767,7 @@ void Unit::CombatStart(Unit* target)
target->SetInCombatWith(this);
}
- if(Player* attackedPlayer = target->GetCharmerOrOwnerPlayerOrPlayerItself())
+ if(Player* attackedPlayer = GetCharmerOrOwnerPlayerOrPlayerItself())
SetContestedPvP(attackedPlayer);
}