From 5f660f7677a85096e39f9a8c7b4f14bb22414f44 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 18 Mar 2015 22:07:57 +0100 Subject: [PATCH] Added cNetwork initialization to program start. Otherwise the server could crash because MSVC doesn't implement magic statics yet. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 20609a2f8..428e89e93 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -282,8 +282,12 @@ int main( int argc, char **argv) } } // for i - argv[] + // Initialize logging subsystem: cLogger::InitiateMultithreading(); + // Initialize LibEvent: + cNetworkSingleton::Get(); + #if !defined(ANDROID_NDK) try #endif