1
0

Fixed compile errors

This commit is contained in:
Vincent
2014-12-08 00:45:29 -08:00
parent 656964dc38
commit 6de07d4a39
6 changed files with 14 additions and 18 deletions

View File

@@ -304,16 +304,17 @@ int cServer::GetNumPlayers(void) const
std::list<AString> cServer::GetUsernames()
bool cServer::IsPlayerInQueue(AString a_Username)
{
std::list<AString> usernames;
cCSLock Lock(m_CSClients);
for (auto client : m_Clients)
{
AString username = (client)->GetUsername();
usernames.insert(usernames.begin(),username);
if ((client->GetUsername()).compare(a_Username) == 0)
{
return true;
}
}
return usernames;
return false;
}