Core/Packets: disable sending 0 as opcode and print trace info
This commit is contained in:
1 parent
05880cc748
commit
929da7396d
1 file changed
+1
-1
@@ -159,7 +159,7 @@ void WorldSession::SendPacket(WorldPacket const* packet)
|
||||
if (!m_Socket)
|
||||
return;
|
||||
|
||||
if (packet->GetOpcode() == UNKNOWN_OPCODE)
|
||||
if (packet->GetOpcode() == NULL || packet->GetOpcode() == UNKNOWN_OPCODE)
|
||||
{
|
||||
sLog->outError("Sending unknown opcode - prevented. Trace:");
|
||||
ACE_Stack_Trace trace;
|
||||
|
||||
Reference in new issue
Block a user