1
0

fixed naming of strings and changed from i to I

This commit is contained in:
Vincent
2014-11-29 11:22:03 -08:00
parent 61e761fdc2
commit a7bf2725c8
5 changed files with 18 additions and 13 deletions

View File

@@ -3667,14 +3667,18 @@ void cWorld::cChunkGeneratorCallbacks::CallHookChunkGenerated (cChunkDesc & a_Ch
std::list<std::string> cWorld::GetUsernames()
std::list<AString> cWorld::GetUsernames()
{
std::list<std::string> usernames;
std::list<AString> usernames;
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
std::string username = (*itr)->GetName();
AString username = (*itr)->GetName();
usernames.insert(usernames.begin(),username);
}
return usernames;
}