]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
host: Initialize all hooks to NULL to avoid problems on dedicated servers
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 5 Oct 2020 18:03:46 +0000 (18:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12997 d7cf8633-e32d-0410-b094-e92efae38249

host.c

diff --git a/host.c b/host.c
index b71eefa877e197c960946987250be9db56a9923b..584b38174a75ddd0b13c82900d77a42bdd4018ea 100644 (file)
--- a/host.c
+++ b/host.c
@@ -616,6 +616,12 @@ static void Host_Init (void)
        char vabuf[1024];
        cmd_state_t *cmd = &cmd_client;
 
+       host.hook.ConnectLocal = NULL;
+       host.hook.Disconnect = NULL;
+       host.hook.ToggleMenu = NULL;
+       host.hook.CL_Intermission = NULL;
+       host.hook.SV_CanSave = NULL;
+
        host.state = host_init;
 
        if (setjmp(host.abortframe)) // Huh?!