diff options
author | eihrul <eihrul> | 2010-05-14 22:28:38 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2010-05-14 22:28:38 +0000 |
commit | 94a1e8879fd98719fcac0ba28df84c5b72d52178 (patch) | |
tree | f0eb85331cd4b551fee7011e57b02ad18fcb9d18 | |
parent | c5189c090fc47503790bcb994232629897d61d7c (diff) | |
download | enet-94a1e8879fd98719fcac0ba28df84c5b72d52178.tar.gz enet-94a1e8879fd98719fcac0ba28df84c5b72d52178.zip |
enet_peer_receive channelID fix
-rw-r--r-- | peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |