diff options
author | thenecromancer <none@none> | 2010-02-03 21:06:35 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-02-03 21:06:35 +0100 |
commit | 1cda3dcb5ff2e51cbe65686fd5f50e48fc7526f8 (patch) | |
tree | e2ee93a4a31882249d9587838aac0d1860c0b806 /src | |
parent | 46c3236a14901460170cfbba10b0d01ba7f54480 (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.cpp | 2 |
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)) { |