diff options
| author | megamage <none@none> | 2009-02-17 18:07:09 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-02-17 18:07:09 -0600 |
| commit | 05ef0471c32aecbc10708acfc851185d15f64636 (patch) | |
| tree | 0855cd7adc2d2575729b3478174ac88a4ce6ac00 /src/game/SpellAuras.cpp | |
| parent | 1f183d9e80468ed9cc1b679c5fa7fd182cf12300 (diff) | |
*Fix a crash bug caused by bindsight spells.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index d411ea7343d..011ce5b743e 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -2832,7 +2832,10 @@ void Aura::HandleBindSight(bool apply, bool Real) if(!caster || caster->GetTypeId() != TYPEID_PLAYER) return; - ((Player*)caster)->SetBindSight(apply ? m_target : NULL); + if(apply) + m_target->AddPlayerToVision((Player*)caster); + else + m_target->RemovePlayerFromVision((Player*)caster); } void Aura::HandleFarSight(bool apply, bool Real) |
