Fix null check typo
This commit is contained in:
parent
b3b5ee1c2c
commit
9ebb429f66
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ static int sendMessageEnet(short ptype, short paylen, const void* payload) {
|
|||
}
|
||||
|
||||
enetPacket = enet_packet_create(packet, sizeof(*packet) + paylen, ENET_PACKET_FLAG_RELIABLE);
|
||||
if (packet == NULL) {
|
||||
if (enetPacket == NULL) {
|
||||
free(packet);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue