aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Pools/PoolMgr.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-02-08 19:40:03 +0100
committerjackpoz <giacomopoz@gmail.com>2015-02-08 19:40:03 +0100
commite6f26cfb1f75d21a166cc3fd371f9c5f1641625e (patch)
tree97521ff8cd7ab668657465c5b9052537246a7e4e /src/server/game/Pools/PoolMgr.cpp
parent4ba22c5eafdad2094b553c206c1dc1f30448d049 (diff)
Core/Misc: Fix static analysis issues
Fix some static analysis issues reported by Coverity. Rename SpellMgr::EnsureSpellInfo() to SpellMgr::AssertSpellInfo() to be consistent with other similar methods.
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 257c279ade2..9f8a9f8686b 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, uint64 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))