diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 11:25:27 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:14:58 +0000 |
commit | a4815971e21389462764c70bf3cd146694498bca (patch) | |
tree | cf5ba8351f15ca4e7e2de196a75fffa3729a4b63 | |
parent | c442eb684d0a4584fcc1aad76433bd601a0412a4 (diff) |
src/game/g_cmds.c:534: warning: ‘ent’ is used uninitialized in this function
I think you meant 'self'
-rw-r--r-- | src/game/g_cmds.c | 2 |
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; } |