From a7220b86a7f801156a257eba6a71d369bf7e1b00 Mon Sep 17 00:00:00 2001 From: Shpoike Date: Thu, 29 Jun 2023 16:35:38 +0100 Subject: [PATCH] Fix potential crash when loading saved games. --- Quake/host_cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/host_cmd.c b/Quake/host_cmd.c index 888a29c6..ba7ee6d1 100644 --- a/Quake/host_cmd.c +++ b/Quake/host_cmd.c @@ -1435,6 +1435,7 @@ static void Host_Loadgame_f (void) memset (&ent->v, 0, qcvm->progs->entityfields * 4); } else { + SV_UnlinkEdict(ent); memset (ent, 0, qcvm->edict_size); ent->baseline = nullentitystate; }