mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
[7555] Check pool_id bafire access to pool data in PoolHandler::CheckPool Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -699,7 +699,8 @@ uint16 PoolHandler::IsPartOfAPool(uint32 guid, uint32 type)
|
||||
// Method that check chance integrity of the creatures and gameobjects in this pool
|
||||
bool PoolHandler::CheckPool(uint16 pool_id)
|
||||
{
|
||||
return mPoolGameobjectGroups[pool_id].CheckPool() &&
|
||||
return pool_id <= max_pool_id &&
|
||||
mPoolGameobjectGroups[pool_id].CheckPool() &&
|
||||
mPoolCreatureGroups[pool_id].CheckPool() &&
|
||||
mPoolPoolGroups[pool_id].CheckPool();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user