added missing check
This commit is contained in:
parent
d51aea39cb
commit
412d8589a3
@ -276,7 +276,7 @@ public Action RandomizeNames(Handle timer)
|
|||||||
ArrayList hClanNames = g_hClanNames.Clone();
|
ArrayList hClanNames = g_hClanNames.Clone();
|
||||||
for(int i = 1; i <= MaxClients; i++)
|
for(int i = 1; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if(g_bFakePopulation[i] || (IsClientConnected(i) && IsClientInGame(i) && IsClientAutismBot(i)))
|
if(g_bFakePopulation[i] || (IsClientConnected(i) && IsClientInGame(i) && IsClientAuthorized(i) && IsClientAutismBot(i)))
|
||||||
{
|
{
|
||||||
int iRand = GetRandomInt(0, hNames.Length - 1);
|
int iRand = GetRandomInt(0, hNames.Length - 1);
|
||||||
char sName[MAX_NAME_LENGTH];
|
char sName[MAX_NAME_LENGTH];
|
||||||
|
Loading…
Reference in New Issue
Block a user