aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2025-07-26 13:10:32 +0200
committerGitHub <noreply@github.com>2025-07-26 13:10:32 +0200
commit48fd0413046ebc11d59883eaabbfdb99981647d8 (patch)
tree1ad663b9900119ea08d7e7f385808940d8b11455
parentd7c31e0542d69498a6d5566ed79a0768c735d2b4 (diff)
Core/Pools: Fix handle respawning for nested pools (#31163)
Closes #28524
-rw-r--r--src/server/game/Pools/PoolMgr.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/server/game/Pools/PoolMgr.cpp b/src/server/game/Pools/PoolMgr.cpp
index f0b0083895e..95a131a5015 100644
--- a/src/server/game/Pools/PoolMgr.cpp
+++ b/src/server/game/Pools/PoolMgr.cpp
@@ -377,26 +377,14 @@ void PoolGroup<Pool>::Spawn1Object(PoolObject* obj)
sPoolMgr->SpawnPool(obj->guid);
}
-// Method that does the respawn job on the specified creature
-template <>
-void PoolGroup<Creature>::ReSpawn1Object(PoolObject* obj)
+// Method that does the respawn job on the specified object
+template <typename T>
+void PoolGroup<T>::ReSpawn1Object(PoolObject* obj)
{
Despawn1Object(obj->guid, false, false);
Spawn1Object(obj);
}
-// Method that does the respawn job on the specified gameobject
-template <>
-void PoolGroup<GameObject>::ReSpawn1Object(PoolObject* obj)
-{
- Despawn1Object(obj->guid, false, false);
- Spawn1Object(obj);
-}
-
-// Nothing to do for a child Pool
-template <>
-void PoolGroup<Pool>::ReSpawn1Object(PoolObject* /*obj*/) { }
-
template <>
void PoolGroup<Creature>::RemoveRespawnTimeFromDB(ObjectGuid::LowType guid)
{