mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
*** empty log message ***
This commit is contained in:
parent
54ecd741df
commit
050cf18c96
1 changed files with 2 additions and 2 deletions
4
packet.c
4
packet.c
|
@ -30,11 +30,11 @@ enet_packet_create (const void * data, size_t dataLength, enet_uint32 flags)
|
||||||
{
|
{
|
||||||
enet_free (packet);
|
enet_free (packet);
|
||||||
return NULL;
|
return NULL;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (data != NULL)
|
if (data != NULL)
|
||||||
memcpy (packet -> data, data, dataLength);
|
memcpy (packet -> data, data, dataLength);
|
||||||
};
|
}
|
||||||
|
|
||||||
packet -> referenceCount = 0;
|
packet -> referenceCount = 0;
|
||||||
packet -> flags = flags;
|
packet -> flags = flags;
|
||||||
|
|
Loading…
Reference in a new issue