Core/Packets: updated CMSG_LFG_JOIN and CMSG_LFG_LEAVE to new packet handling
This commit is contained in:
1 parent
dfbf50234d
commit
6abeb36584
9 files changed
+233
-61
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user