From: cloudwalk Date: Mon, 5 Oct 2020 18:03:46 +0000 (+0000) Subject: host: Initialize all hooks to NULL to avoid problems on dedicated servers X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9f275c9e06cc11076af60312f34ec749dbf4319;p=xonotic%2Fdarkplaces.git 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 --- 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?!