aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Pools/PoolMgr.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-04-04 15:28:13 +0200
committerjackpoz <giacomopoz@gmail.com>2015-04-04 15:28:13 +0200
commit2dc97e3f3db69bf7799341db5bcc7604558c90b8 (patch)
tree6178606c9c8cd7d9572b45ae04adeeb0aed18211 /src/server/game/Pools/PoolMgr.cpp
parentc38d4f57b318573f4ccd4404c733d658298c3f0b (diff)
Core/Misc: Fix issues reported by static analysis
Coverity defect IDs: 1292769, 1292768, 1292765, 1292763, 1267939
Diffstat (limited to 'src/server/game/Pools/PoolMgr.cpp')
-rw-r--r--src/server/game/Pools/PoolMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Pools/PoolMgr.cpp b/src/server/game/Pools/PoolMgr.cpp
index d643bc5da41..3f561539917 100644
--- a/src/server/game/Pools/PoolMgr.cpp
+++ b/src/server/game/Pools/PoolMgr.cpp
@@ -170,7 +170,7 @@ PoolObject* PoolGroup<T>::RollOne(ActivePoolData& spawns, uint32 triggerFrom)
}
if (!EqualChanced.empty())
{
- int32 index = irand(0, EqualChanced.size()-1);
+ uint32 index = urand(0, EqualChanced.size()-1);
// Triggering object is marked as spawned at this time and can be also rolled (respawn case)
// so this need explicit check for this case
if (EqualChanced[index].guid == triggerFrom || !spawns.IsActiveObject<T>(EqualChanced[index].guid))