[7555] Check pool_id bafire access to pool data in PoolHandler::CheckPool Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 16:14:56 -06:00
parent 494e09ba92
commit c1c395dfb6

View File

@@ -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();
}