diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-15 00:08:40 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:17 +0200 |
commit | 3688def7ff8188b910695950b6bb538ccc2d6d07 (patch) | |
tree | d7428b881b69396909371553e93b70f9706ed540 /src | |
parent | deafddcb7521cdebf7850b0f3a86f1993fcdbc28 (diff) |
fix a null pointer dereference bug in multi_trigger
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_trigger.c b/src/game/g_trigger.c index 0ac34bb..aeac438 100644 --- a/src/game/g_trigger.c +++ b/src/game/g_trigger.c @@ -51,7 +51,7 @@ void multi_trigger( gentity_t *ent, gentity_t *activator ) if( ent->nextthink ) return; // can't retrigger until the wait is over - if( activator->client ) + if( activator && activator->client ) { if( ( ent->spawnflags & 1 ) && activator->client->ps.stats[ STAT_PTEAM ] != PTE_HUMANS ) |