Browse Source

Merge pull request #56 from Vincenz099/master

Use PeerID instead of ConnectID, because ConnectID can be non-unique.
NX 6 years ago
parent
commit
e37aa5647d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Native/enet.h

+ 2 - 2
Source/Native/enet.h

@@ -4256,7 +4256,7 @@ extern "C" {
 	}
 
 	enet_uint32 enet_peer_get_id(const ENetPeer* peer) {
-		return peer->connectID;
+		return peer->incomingPeerID;
 	}
 
 	int enet_peer_get_ip(const ENetPeer* peer, char* ip, size_t ipLength) {
@@ -5067,4 +5067,4 @@ extern "C" {
 }
 #endif
 #endif
-#endif
+#endif