aboutsummaryrefslogtreecommitdiffhomepage
path: root/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'peer.c')
-rw-r--r--peer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/peer.c b/peer.c
index 1c616fa..d778ce1 100644
--- a/peer.c
+++ b/peer.c
@@ -325,7 +325,7 @@ void
enet_peer_reset (ENetPeer * peer)
{
peer -> outgoingPeerID = ENET_PROTOCOL_MAXIMUM_PEER_ID;
- peer -> sessionID = 0;
+ peer -> connectID = 0;
peer -> state = ENET_PEER_STATE_DISCONNECTED;
@@ -363,7 +363,7 @@ enet_peer_reset (ENetPeer * peer)
peer -> windowSize = ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE;
peer -> incomingUnsequencedGroup = 0;
peer -> outgoingUnsequencedGroup = 0;
- peer -> disconnectData = 0;
+ peer -> eventData = 0;
memset (peer -> unsequencedWindow, 0, sizeof (peer -> unsequencedWindow));
@@ -477,7 +477,7 @@ enet_peer_disconnect_later (ENetPeer * peer, enet_uint32 data)
enet_list_empty (& peer -> sentReliableCommands)))
{
peer -> state = ENET_PEER_STATE_DISCONNECT_LATER;
- peer -> disconnectData = data;
+ peer -> eventData = data;
}
else
enet_peer_disconnect (peer, data);