2
0
Эх сурвалжийг харах

Put perror() call inside ifdef.

Brucey 5 жил өмнө
parent
commit
55b16842f3

+ 3 - 1
enet.mod/enet/include/enet.h

@@ -3116,7 +3116,9 @@ extern "C" {
                 enet_protocol_remove_sent_unreliable_commands(currentPeer);
 
                 if (sentLength < 0) {
-perror("sent no bytes");
+                    #ifdef ENET_DEBUG
+                        perror("sent no bytes");
+                    #endif
                     return -1;
                 }