Merge pull request #5 from Artamedes/patch-1

Server/PacketIO: Fix S->C logging
This commit is contained in:
Ovah
2019-10-07 10:21:19 +02:00
committed by GitHub

View File

@@ -301,7 +301,7 @@ void WorldSession::SendPacket(WorldPacket const* packet, bool forced /*= false*/
sScriptMgr->OnPacketSend(this, *packet);
TC_LOG_TRACE("network.opcode", "S->C: %s %s", GetPlayerInfo().c_str(), GetOpcodeNameForLogging(static_cast<OpcodeClient>(packet->GetOpcode())).c_str());
TC_LOG_TRACE("network.opcode", "S->C: %s %s", GetPlayerInfo().c_str(), GetOpcodeNameForLogging(static_cast<OpcodeServer>(packet->GetOpcode())).c_str());
m_Socket[conIdx]->SendPacket(*packet);
}