1
0

Fix adding players to world

This commit is contained in:
LogicParrot 2016-03-31 20:40:58 +03:00
parent 02adc02045
commit 13195cd207

View File

@ -3817,7 +3817,7 @@ void cWorld::AddQueuedPlayers(void)
// Add all the players in the grabbed list:
{
cCSLock Lock(m_CSPlayers);
for (auto Player : m_Players)
for (auto Player : PlayersToAdd)
{
ASSERT(std::find(m_Players.begin(), m_Players.end(), Player) == m_Players.end()); // Is it already in the list? HOW?
LOGD("Adding player %s to world \"%s\".", Player->GetName().c_str(), m_WorldName.c_str());