FakeClients: oooops

This commit is contained in:
neon 2019-12-13 13:04:59 +01:00
parent 90a00814d7
commit 6c44d7b4d6

View File

@ -158,8 +158,8 @@ public Action RandomizeNames(Handle timer)
{
int iRand = GetRandomInt(0, hNames.Length - 1);
char sName[MAX_NAME_LENGTH];
g_hNames.GetString(iRand, sName, sizeof(sName));
g_hNames.Erase(iRand);
hNames.GetString(iRand, sName, sizeof(sName));
hNames.Erase(iRand);
SetClientName(i, sName);
}
}
@ -412,7 +412,7 @@ public void CheckPopulation()
}
int iRand = GetRandomInt(0, hNames.Length - 1);
g_hNames.GetString(iRand, sName, sizeof(sName));
hNames.GetString(iRand, sName, sizeof(sName));
delete hNames;
int iIndex = CreateFakeClient(sName);