*Set seer back when it is removed to prevent crash.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-19 08:59:15 -06:00
parent 2f9688bb07
commit 4877009098
5 changed files with 22 additions and 34 deletions
+3 -7
View File
@@ -2057,16 +2057,12 @@ class TRINITY_DLL_SPEC Player : public Unit
void EnterVehicle(Vehicle *vehicle);
void ExitVehicle(Vehicle *vehicle);
void SetMover(Unit* target) { CreateSeer(target); m_mover = target; }
void CreateSeer(WorldObject *target);
void SetMover(Unit* target) { CreateViewpoint(target); m_mover = target; }
void SetSeer(WorldObject *target) { m_seer = target; }
void CreateViewpoint(WorldObject *target);
WorldObject* GetViewpoint() const;
void StopCastingCharm() { Uncharm(); }
void StopCastingBindSight();
uint64 GetFarSightGUID() const { return GetUInt64Value(PLAYER_FARSIGHT); }
WorldObject* GetFarsightTarget() const;
// Controls if vision is currently on farsight object, updated in FAR_SIGHT opcode
void SetFarsightVision(bool apply) { m_farsightVision = apply; }
bool HasFarsightVision() const { return m_farsightVision; }
// Transports
Transport * GetTransport() const { return m_transport; }