diff options
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r-- | src/core/gameserver.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index f251b75..e086096 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -114,7 +114,7 @@ GameServer::GameServer() : GameInterface() server_frametime = 0.0f; server_maxplayerid = 1; - server_module = Module::preload(); + server_module = Module::current(); if (!server_module) { con_error << "No module loaded.\n"; abort(); @@ -199,9 +199,6 @@ GameServer::~GameServer() player_disconnect(localplayer()); server_module->shutdown(); - - if (server_module != Module::preload()) - delete server_module; } Func::remove("kick"); |