Ver código fonte

initialize intercept callback to NULL

lsalzman 12 anos atrás
pai
commit
77cc156305
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      host.c

+ 2 - 0
host.c

@@ -103,6 +103,8 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
     host -> compressor.decompress = NULL;
     host -> compressor.destroy = NULL;
 
+    host -> intercept = NULL;
+
     enet_list_clear (& host -> dispatchQueue);
 
     for (currentPeer = host -> peers;