mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
enet_peer_receive channelID fix
This commit is contained in:
parent
c5189c090f
commit
94a1e8879f
1 changed files with 2 additions and 1 deletions
3
peer.c
3
peer.c
|
@ -218,7 +218,8 @@ enet_peer_receive (ENetPeer * peer, enet_uint8 * channelID)
|
|||
|
||||
incomingCommand = (ENetIncomingCommand *) enet_list_remove (enet_list_begin (& peer -> dispatchedCommands));
|
||||
|
||||
* channelID = incomingCommand -> command.header.channelID;
|
||||
if (channelID != NULL)
|
||||
* channelID = incomingCommand -> command.header.channelID;
|
||||
|
||||
packet = incomingCommand -> packet;
|
||||
|
||||
|
|
Loading…
Reference in a new issue