Browse Source

Fix incorrect conditions in selective broadcast

NX 7 years ago
parent
commit
9fb7a22882
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Native/enet.h

+ 1 - 1
Source/Native/enet.h

@@ -4218,7 +4218,7 @@ extern "C" {
         }
 
         for (currentPeer = peers; currentPeer < &peers[length]; ++currentPeer) {
-            if (currentPeer != NULL && currentPeer->state != ENET_PEER_STATE_CONNECTED) {
+            if (currentPeer == NULL || currentPeer->state != ENET_PEER_STATE_CONNECTED) {
                 continue;
             }