From d9f275c9e06cc11076af60312f34ec749dbf4319 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Mon, 5 Oct 2020 18:03:46 +0000 Subject: [PATCH] host: Initialize all hooks to NULL to avoid problems on dedicated servers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12997 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host.c b/host.c index b71eefa8..584b3817 100644 --- 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?! -- 2.39.2