]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
sv_main: Fix crash
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Oct 2020 22:46:03 +0000 (22:46 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 16 Oct 2020 22:46:03 +0000 (22:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13018 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 5b5b22ce42b3cb63dca508892a85e27a89479079..6fbd146d1191d3501dbb7d87fbbefc92b6aec496 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -705,11 +705,12 @@ void SV_Init (void)
        Cvar_RegisterVariable (&sv_mapformat_is_quake2);
        Cvar_RegisterVariable (&sv_mapformat_is_quake3);
 
-       SV_ServerOptions();
        SV_InitOperatorCommands();
        host.hook.SV_CanSave = SV_CanSave;
 
        sv_mempool = Mem_AllocPool("server", 0, NULL);
+
+       SV_ServerOptions();
 }
 
 static void SV_SaveEntFile_f(cmd_state_t *cmd)