summaryrefslogtreecommitdiff
path: root/src/game/g_target.c
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2014-07-14 16:12:36 +0200
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:17 +0100
commit4770f7211ed30a0a567ba49cb0d7224ab830adcb (patch)
tree34c038af9ee15167a882bec40fdcfd77d4bcd5b8 /src/game/g_target.c
parent7d165fdd77b85ae93acd749a15051080ea3eb0cd (diff)
make some code more robust against disappearance of entities
Diffstat (limited to 'src/game/g_target.c')
-rw-r--r--src/game/g_target.c2
1 files changed, 2 insertions, 0 deletions
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 );
}