ref: 89332f29ae9d780129c2bcc2a831f959eda255ec
parent: 465d7417a2a293802ffd1443821ff0cf39e3a2cf
author: Simon Howard <[email protected]>
date: Sat Apr 1 15:16:43 EST 2006
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
--- 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 @@
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