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

View file

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