From a4815971e21389462764c70bf3cd146694498bca Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:25:27 +0000 Subject: src/game/g_cmds.c:534: warning: ‘ent’ is used uninitialized in this function I think you meant 'self' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit