Core/Packets: disable sending 0 as opcode and print trace info

This commit is contained in:
Rat committed 2011-11-26 20:28:12 +01:00
1 parent 05880cc748
commit 929da7396d
1 file changed
+1 -1
+1 -1
View File
@@ -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;