From 4f3dbbaeb19a54a09cd4a984c8c5107436a2b197 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 23 Jul 2020 14:35:39 -0400 Subject: [PATCH] fix clearing of outgoing command queue --- host.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/host.c b/host.c index 3be6c09..3b2180f 100644 --- a/host.c +++ b/host.c @@ -124,8 +124,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL enet_list_clear (& currentPeer -> acknowledgements); enet_list_clear (& currentPeer -> sentReliableCommands); enet_list_clear (& currentPeer -> sentUnreliableCommands); - enet_list_clear (& currentPeer -> outgoingReliableCommands); - enet_list_clear (& currentPeer -> outgoingUnreliableCommands); + enet_list_clear (& currentPeer -> outgoingCommands); enet_list_clear (& currentPeer -> dispatchedCommands); enet_peer_reset (currentPeer);