|
|
@@ -135,7 +135,7 @@ OutOfMemoryCallback OnOutOfMemory = () => {
|
|
|
|
|
|
callbacks = new Callbacks(OnMemoryAllocate, OnMemoryFree, OnOutOfMemory);
|
|
|
|
|
|
-if (ENet.Library.Initialize(ref callbacks) > 0)
|
|
|
+if (ENet.Library.Initialize(ref callbacks) > -1)
|
|
|
Console.WriteLine("ENet successfully initialized using a custom memory allocator");
|
|
|
```
|
|
|
|