Server/PacketIO: Fix S->C logging

Wrong static cast
This commit is contained in:
Artamedes
2019-10-06 23:59:36 -04:00
committed by GitHub
parent c68e39d074
commit daa58b574b

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);
}