aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorthenecromancer <none@none>2010-02-03 21:06:35 +0100
committerthenecromancer <none@none>2010-02-03 21:06:35 +0100
commit1cda3dcb5ff2e51cbe65686fd5f50e48fc7526f8 (patch)
treee2ee93a4a31882249d9587838aac0d1860c0b806 /src
parent46c3236a14901460170cfbba10b0d01ba7f54480 (diff)
Fix possible issue where player could inherit stealth visibility from his/her pet.
--HG-- branch : trunk
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 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))
{