From d778d5ec7cfa94d6de2500e1fff7ae3bd30be18f Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 31 Dec 2024 18:12:36 +0100 Subject: Core/Misc: Include cleanup - remove MapUtils.h from Containers.h --- src/server/game/Pools/PoolMgr.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/server/game/Pools/PoolMgr.cpp') diff --git a/src/server/game/Pools/PoolMgr.cpp b/src/server/game/Pools/PoolMgr.cpp index 8fd7ba164cc..65242d95b1a 100644 --- a/src/server/game/Pools/PoolMgr.cpp +++ b/src/server/game/Pools/PoolMgr.cpp @@ -22,8 +22,9 @@ #include "GameObject.h" #include "Log.h" #include "Map.h" +#include "MapUtils.h" #include "ObjectMgr.h" -#include +#include PoolObject::PoolObject(uint64 _guid, float _chance) : guid(_guid), chance(std::fabs(_chance)) { @@ -693,13 +694,8 @@ void PoolMgr::LoadFromDB() checkedPools.insert(poolItr->first); if (checkedPools.find(poolItr->second) != checkedPools.end()) { - std::ostringstream ss; - ss << "The pool(s) "; - for (std::set::const_iterator itr = checkedPools.begin(); itr != checkedPools.end(); ++itr) - ss << *itr << ' '; - ss << "create(s) a circular reference, which can cause the server to freeze.\nRemoving the last link between mother pool " - << poolItr->first << " and child pool " << poolItr->second; - TC_LOG_ERROR("sql.sql", "{}", ss.str()); + TC_LOG_ERROR("sql.sql", "The pool(s) {} create(s) a circular reference, which can cause the server to freeze.\nRemoving the last link between mother pool {} and child pool {}", + fmt::join(checkedPools, " "), poolItr->first, poolItr->second); mPoolPoolGroups[poolItr->second].RemoveOneRelation(poolItr->first); mPoolSearchMap.erase(poolItr); --count; -- cgit v1.2.3