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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 28431dd8..2918e0be 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -532,7 +532,7 @@ void G_LeaveTeam( gentity_t *self )
else
{
// might have been following somone so reset
- if( ent->client->sess.spectatorState == SPECTATOR_FOLLOW )
+ if( self->client->sess.spectatorState == SPECTATOR_FOLLOW )
G_StopFollowing( self );
return;
}