*Fix a typo. Set owner in pvp when pet attacks other players.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-01 16:44:04 -06:00
parent b5af2546b5
commit 28e1aec6df

View File

@@ -9767,7 +9767,7 @@ void Unit::CombatStart(Unit* target)
target->SetInCombatWith(this);
}
if(Player* attackedPlayer = target->GetCharmerOrOwnerPlayerOrPlayerItself())
if(Player* attackedPlayer = GetCharmerOrOwnerPlayerOrPlayerItself())
SetContestedPvP(attackedPlayer);
}