check if ent->client not ent->inuse since we want to check connecting clients

This commit is contained in:
Scott Brooks 2009-07-04 16:39:39 +00:00
parent 540b74dad2
commit d05e867eac
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ qboolean checkCaptain(team_t team)
//Blaze: Prit out some Debug info //Blaze: Prit out some Debug info
if (&g_entities[i] == NULL) G_Printf("Ln 0059\n"); if (&g_entities[i] == NULL) G_Printf("Ln 0059\n");
ent = &g_entities[i]; ent = &g_entities[i];
if (!ent->inuse) if (!ent->client)
continue; continue;
if (ent->client->sess.savedTeam == team && ent->client->sess.captain == team) if (ent->client->sess.savedTeam == team && ent->client->sess.captain == team)
return qtrue; return qtrue;