Core/PacketIO: Let packets that have a handler in array through to worldsession update

This commit is contained in:
Shauren committed 2014-10-12 15:32:25 +02:00
1 parent d0db99961f
commit c2a39ce36a
1 file changed
+5 -2
+5 -2
View File
@@ -215,13 +215,16 @@ bool WorldSocket::ReadDataHandler()
// prevent invalid memory access/crash with custom opcodes
if (opcode >= NUM_OPCODE_HANDLERS)
{
CloseSocket();
return false;
}
OpcodeHandler const* handler = opcodeTable[opcode];
if (!handler || handler->Status == STATUS_UNHANDLED)
if (!handler)
{
TC_LOG_ERROR("network.opcode", "No defined handler for opcode %s sent by %s", GetOpcodeNameForLogging(packet.GetOpcode()).c_str(), _worldSession->GetPlayerInfo().c_str());
return false;
return true;
}
// Our Idle timer will reset on any non PING opcodes.