mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user