diff options
author | megamage <none@none> | 2009-03-28 16:14:56 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-28 16:14:56 -0600 |
commit | c1c395dfb68d052428d4466beedd1d56733f21c7 (patch) | |
tree | 4741cd2be976655184817413829c85c7a1af7428 | |
parent | 494e09ba927ec3475c55a1a6658c4714ea0a101b (diff) |
[7555] Check pool_id bafire access to pool data in PoolHandler::CheckPool Author: VladimirMangos
--HG--
branch : trunk
-rw-r--r-- | src/game/PoolHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/PoolHandler.cpp b/src/game/PoolHandler.cpp index a2c688dac2f..1c8cd871ab6 100644 --- a/src/game/PoolHandler.cpp +++ b/src/game/PoolHandler.cpp @@ -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(); } |