summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_active.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index b00bbc97..1668058a 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1403,7 +1403,8 @@ void ClientThink_real( gentity_t *ent )
{
int regenRate = BG_Class( ent->client->ps.stats[ STAT_CLASS ] )->regenRate;
- if( ent->nextRegenTime < 0 || regenRate == 0 )
+ if( !ent->client || ent->health <= 0 || ent->nextRegenTime < 0 ||
+ regenRate == 0 )
{
ent->nextRegenTime = -1;
break; // no regen