From afc33e7b285efd717dcd4ce75b590d99f2bcbdf6 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 25 Jul 2026 18:10:15 -0300 Subject: [PATCH] fix(Core/Pools): respawn nested pools when the same child pool is re-selected (#26791) Co-authored-by: Gildor --- src/server/game/Pools/PoolMgr.cpp | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/server/game/Pools/PoolMgr.cpp b/src/server/game/Pools/PoolMgr.cpp index 0a22e2e9d..98cf90f5a 100644 --- a/src/server/game/Pools/PoolMgr.cpp +++ b/src/server/game/Pools/PoolMgr.cpp @@ -526,28 +526,14 @@ void PoolGroup::SpawnObject(ActivePoolData& spawns, uint32 limit, uint32 sPoolMgr->SaveQuestsToDB(false, false, true); } -// Method that does the respawn job on the specified creature -template <> -void PoolGroup::ReSpawn1Object(PoolObject* obj) +// Method that does the respawn job on the specified object +template +void PoolGroup::ReSpawn1Object(PoolObject* obj) { Despawn1Object(obj->guid); Spawn1Object(obj); } -// Method that does the respawn job on the specified gameobject -template <> -void PoolGroup::ReSpawn1Object(PoolObject* obj) -{ - Despawn1Object(obj->guid); - Spawn1Object(obj); -} - -// Nothing to do for a child Pool -template <> -void PoolGroup::ReSpawn1Object(PoolObject* /*obj*/) -{ -} - // Nothing to do for a quest template <> void PoolGroup::ReSpawn1Object(PoolObject* /*obj*/)