Fixed warnings when EXTRA_LOGS are off

This commit is contained in:
Yehonal
2017-09-25 10:54:21 +02:00
parent e687d223ff
commit dcdddf658b
11 changed files with 25 additions and 13 deletions

View File

@@ -137,10 +137,10 @@ void WorldSession::HandleLfgSetRolesOpcode(WorldPacket& recvData)
void WorldSession::HandleLfgSetCommentOpcode(WorldPacket& recvData)
{
uint64 guid = GetPlayer()->GetGUID();
std::string comment;
recvData >> comment;
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
uint64 guid = GetPlayer()->GetGUID();
sLog->outDebug(LOG_FILTER_NETWORKIO, "CMSG_LFG_SET_COMMENT [" UI64FMTD "] comment: %s", guid, comment.c_str());
#endif