From 4770f7211ed30a0a567ba49cb0d7224ab830adcb Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Mon, 14 Jul 2014 16:12:36 +0200 Subject: make some code more robust against disappearance of entities --- src/game/g_target.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/g_target.c') diff --git a/src/game/g_target.c b/src/game/g_target.c index d25b8807..77b03df8 100644 --- a/src/game/g_target.c +++ b/src/game/g_target.c @@ -31,6 +31,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ void Think_Target_Delay( gentity_t *ent ) { + if( ent->activator && !ent->activator->inuse ) + ent->activator = NULL; G_UseTargets( ent, ent->activator ); } -- cgit