mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 00:12:27 +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 unsigned char *packet_start = (buf + 3);
|
||||||
const int32 packet_length = len - 3;
|
const int32 packet_length = len - 3;
|
||||||
safe_delete_array(pBuffer);
|
safe_delete_array(pBuffer);
|
||||||
if(len >= 0)
|
if(packet_length >= 0)
|
||||||
{
|
{
|
||||||
size = packet_length;
|
size = packet_length;
|
||||||
pBuffer = new unsigned char[size];
|
pBuffer = new unsigned char[size];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user