fixed compilation with ENABLE_* defines disabled

This commit is contained in:
Yehonal
2017-08-20 12:34:06 +02:00
parent 0c50a6027c
commit 620887fe61
9 changed files with 29 additions and 32 deletions

View File

@@ -1473,10 +1473,11 @@ void WorldSession::HandleFarSightOpcode(WorldPacket& recvData)
#endif
if (WorldObject* target = _player->GetViewpoint())
_player->SetSeer(target);
else
else {
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
sLog->outError("Player %s requests non-existing seer " UI64FMTD, _player->GetName().c_str(), _player->GetUInt64Value(PLAYER_FARSIGHT));
#endif
}
}
else
{