From 1cda3dcb5ff2e51cbe65686fd5f50e48fc7526f8 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Wed, 3 Feb 2010 21:06:35 +0100 Subject: Fix possible issue where player could inherit stealth visibility from his/her pet. --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 4107dc70b95..2b194a42f1f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14192,7 +14192,7 @@ void Unit::SetContestedPvP(Player *attackedPlayer) player->addUnitState(UNIT_STAT_ATTACK_PLAYER); player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP); // call MoveInLineOfSight for nearby contested guards - player->SetVisibility(GetVisibility()); + player->SetVisibility(player->GetVisibility()); } if (!hasUnitState(UNIT_STAT_ATTACK_PLAYER)) { -- cgit v1.2.3