diff options
author | Simon Howard | 2006-04-01 20:16:43 +0000 |
---|---|---|
committer | Simon Howard | 2006-04-01 20:16:43 +0000 |
commit | 89332f29ae9d780129c2bcc2a831f959eda255ec (patch) | |
tree | 6052f0d21ea3b6a76d3e32164c0a9f12f39bd111 /src | |
parent | 465d7417a2a293802ffd1443821ff0cf39e3a2cf (diff) | |
download | chocolate-doom-89332f29ae9d780129c2bcc2a831f959eda255ec.tar.gz chocolate-doom-89332f29ae9d780129c2bcc2a831f959eda255ec.tar.bz2 chocolate-doom-89332f29ae9d780129c2bcc2a831f959eda255ec.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/net_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |