From 28e1aec6df5ce68d9878794cd57f515261b1b782 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 1 Dec 2008 16:44:04 -0600 Subject: *Fix a typo. Set owner in pvp when pet attacks other players. --HG-- branch : trunk --- src/game/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3