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

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-03-19 08:59:15 -06:00
1 parent 2f9688bb07
commit 4877009098
5 files changed
+22 -34

No files matched your search

+2 -2
View File
@@ -1442,8 +1442,8 @@ void WorldSession::HandleFarSightOpcode( WorldPacket & recv_data )
_player->SetSeer(_player);
break;
case 1:
sLog.outDebug("Added FarSight " I64FMT " to player %u", _player->GetFarSightGUID(), _player->GetGUIDLow());
if(WorldObject *target = _player->GetFarsightTarget())
sLog.outDebug("Added FarSight " I64FMT " to player %u", _player->GetUInt64Value(PLAYER_FARSIGHT), _player->GetGUIDLow());
if(WorldObject *target = _player->GetViewpoint())
_player->SetSeer(target);
else
sLog.outError("Player %s requests non-existing seer", _player->GetName());