check if ent->client not ent->inuse since we want to check connecting clients
This commit is contained in:
parent
540b74dad2
commit
d05e867eac
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue