From fa4a6e06eb94559dbfd61517353d469d8453a891 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 21 Nov 2018 17:55:02 +0700 Subject: [PATCH] Mark save_bot's edict as free to fix UTIL_FindEntityInSphere --- dlls/gravgunmod.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gravgunmod.cpp b/dlls/gravgunmod.cpp index d3e32e77..a623c8df 100644 --- a/dlls/gravgunmod.cpp +++ b/dlls/gravgunmod.cpp @@ -1156,6 +1156,7 @@ void GGM_ConnectSaveBot( void ) bot->v.health = 1; bot->v.deadflag = 0; bot->v.effects |= EF_NODRAW; + bot->free = true; client0->v.deadflag = deadflag; client0->v.health = health;