From 89332f29ae9d780129c2bcc2a831f959eda255ec Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 1 Apr 2006 20:16:43 +0000 Subject: Don't add modules to the server context until after they have been initialised - avoids crash when bombing out in the init function Subversion-branch: /trunk/chocolate-doom Subversion-revision: 460 --- src/net_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net_server.c b/src/net_server.c index efa47292..8ecc4aa0 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: net_server.c 457 2006-03-30 19:16:06Z fraggle $ +// $Id: net_server.c 460 2006-04-01 20:16:43Z fraggle $ // // Copyright(C) 2005 Simon Howard // @@ -1296,8 +1296,8 @@ static void NET_SV_RunClient(net_client_t *client) void NET_SV_AddModule(net_module_t *module) { - NET_AddModule(server_context, module); module->InitServer(); + NET_AddModule(server_context, module); } // Initialise server and wait for connections -- cgit v1.2.3