Core/Packets: updated CMSG_LFG_JOIN and CMSG_LFG_LEAVE to new packet handling

This commit is contained in:
Ovahlord committed 2019-05-30 19:01:56 +02:00
1 parent dfbf50234d
commit 6abeb36584
9 files changed
+233 -61

No files matched your search

+1 -1
View File
@@ -414,7 +414,7 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler()
}
// prevent invalid memory access/crash with custom opcodes
if (opcode >= NUM_OPCODE_HANDLERS)
if (uint16(opcode) >= NUM_OPCODE_HANDLERS)
{
CloseSocket();
return ReadDataHandlerResult::Error;