Browse Source

code: fix crash caused by improperly initialised callbacks

Dominik Madarász 3 years ago
parent
commit
bc88c7d663
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/enet.h

+ 1 - 1
include/enet.h

@@ -1236,7 +1236,7 @@ extern "C" {
 // !
 // =======================================================================//
 
-    static ENetCallbacks callbacks = { malloc, free, abort, enet_packet_create, enet_packet_destroy };
+    ENetCallbacks callbacks = { malloc, free, abort, enet_packet_create, enet_packet_destroy };
 
     int enet_initialize_with_callbacks(ENetVersion version, const ENetCallbacks *inits) {
         if (version < ENET_VERSION_CREATE(1, 3, 0)) {