mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-03 04:19:20 -04:00
fix another multimap
This commit is contained in:
@@ -3006,12 +3006,12 @@ void CentralServer::setTaskManager(TaskConnection * newTaskManager)
|
||||
|
||||
void CentralServer::removePlanetServer(const PlanetServerConnection * p)
|
||||
{
|
||||
for (std::map<std::string, PlanetServerConnection *>::iterator i = m_planetServers.begin(); i != m_planetServers.end(); ++i)
|
||||
for (std::map<std::string, PlanetServerConnection *>::iterator i = m_planetServers.begin(); i != m_planetServers.end();)
|
||||
{
|
||||
if ((*i).second == p)
|
||||
{
|
||||
DEBUG_REPORT_LOG(true,("Central lost connection to Planet Server %s\n",p->getSceneId().c_str()));
|
||||
m_planetServers.erase(i);
|
||||
i = m_planetServers.erase(i);
|
||||
|
||||
if (isPreloadFinished())
|
||||
m_timeClusterWentIntoLoadingState = 0;
|
||||
@@ -3020,6 +3020,10 @@ void CentralServer::removePlanetServer(const PlanetServerConnection * p)
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user