From 109f26bbe8c519091558d359df0edc5b144d6fbe Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 14 May 2010 22:28:47 +0000 Subject: [PATCH] enet_peer_receive channelID fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4861 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/peer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/enet/peer.c b/source/enet/peer.c index f9d93e77..395a9027 100755 --- a/source/enet/peer.c +++ b/source/enet/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;