make_pair was changed so that it receives by value instead of by ref since

this code was written
This commit is contained in:
DarthArgus
2015-07-28 11:51:48 -05:00
parent ca7c8d7691
commit 8e79c68e29
@@ -320,6 +320,11 @@ void Loader::startLoadForServer(uint32 serverId)
locators->pop_front();
--m_numQueuedLocators;
delete regularLocator;
delete goldLocator;
regularLocator = NULL;
goldLocator = NULL;
}
snapshot->setLoadSerialNumber(++m_loadSerialNumber);
@@ -651,6 +656,11 @@ void Loader::requestChunk(uint32 processId,int nodeX, int nodeZ, const std::stri
if (ConfigServerDatabase::getEnableGoldDatabase())
goldLocator = new ChunkLocator(nodeX, nodeZ, sceneId, processId, false);
addLocatorsForServer(processId, regularLocator, goldLocator);
delete regularLocator;
delete goldLocator;
regularLocator = NULL;
goldLocator = NULL;
}
// ----------------------------------------------------------------------
@@ -931,6 +941,11 @@ void Loader::addLocatorsForServer(uint32 serverId, ObjectLocator * regularLocato
NON_NULL(i->second)->push_back(std::make_pair(regularLocator, goldLocator));
++m_numQueuedLocators;
delete regularLocator;
delete goldLocator;
regularLocator = NULL;
goldLocator = NULL;
}
// ----------------------------------------------------------------------