mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-09 12:23:53 +00:00
Fix error in EQRawApplicationPacket::EQRawApplicationPacket()
This commit is contained in:
parent
16f112a281
commit
0ad4ffe33f
@ -476,7 +476,7 @@ EQRawApplicationPacket::EQRawApplicationPacket(const unsigned char *buf, const u
|
||||
const unsigned char *packet_start = (buf + 3);
|
||||
const int32 packet_length = len - 3;
|
||||
safe_delete_array(pBuffer);
|
||||
if(len >= 0)
|
||||
if(packet_length >= 0)
|
||||
{
|
||||
size = packet_length;
|
||||
pBuffer = new unsigned char[size];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user