summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 5199bd66..cc5b49c2 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1125,6 +1125,9 @@ void Cmd_Class_f( gentity_t *ent )
int num;
gentity_t *other;
+ if( ent->client->ps.stats[ STAT_HEALTH ] <= 0 )
+ return;
+
clientNum = ent->client - level.clients;
trap_Argv( 1, s, sizeof( s ) );