fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)

This commit is contained in:
Francesco Borzì 2021-07-10 15:54:16 +02:00 committed by GitHub
parent 2fcafa5f39
commit 4103fca5a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 69 additions and 69 deletions

View file

@ -784,7 +784,7 @@ void PoolMgr::LoadFromDB()
// Now check for circular reference
// All pool_ids are in pool_template
for (auto const it : mPoolTemplate)
for (auto const& it : mPoolTemplate)
{
std::set<uint32> checkedPools;
for (SearchMap::iterator poolItr = mPoolSearchMap.find(it.first); poolItr != mPoolSearchMap.end(); poolItr = mPoolSearchMap.find(poolItr->second))