mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Maps: move pooling hand-off outside of Map::CheckRespawn (PR#25785)
fixes #25777
(cherry picked from commit f8afcec9f3)
This commit is contained in:
@@ -855,3 +855,18 @@ void PoolMgr::UpdatePool(uint32 pool_id, uint64 db_guid_or_pool_id)
|
||||
template void PoolMgr::UpdatePool<Pool>(uint32 pool_id, uint64 db_guid_or_pool_id);
|
||||
template void PoolMgr::UpdatePool<GameObject>(uint32 pool_id, uint64 db_guid_or_pool_id);
|
||||
template void PoolMgr::UpdatePool<Creature>(uint32 pool_id, uint64 db_guid_or_pool_id);
|
||||
|
||||
void PoolMgr::UpdatePool(uint32 pool_id, SpawnObjectType type, uint64 spawnId)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case SPAWN_TYPE_CREATURE:
|
||||
UpdatePool<Creature>(pool_id, spawnId);
|
||||
break;
|
||||
case SPAWN_TYPE_GAMEOBJECT:
|
||||
UpdatePool<GameObject>(pool_id, spawnId);
|
||||
break;
|
||||
default:
|
||||
ABORT_MSG("Invalid spawn type %u passed to PoolMgr::IsPartOfPool (with spawnId " UI64FMTD ")", uint32(type), spawnId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user