aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2014-08-14 16:36:04 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2014-08-14 16:36:04 +0200
commit5b355c57baf1c06082f78fd311f87a18fa0d257e (patch)
treede9a1cbb25a91a33fcc3ba48265ca1f30e055a89 /src/server/game/AI/SmartScripts
parentccfa82e7d516c9d280fc7214fcf3672397c741ff (diff)
Core/Creature: Fix warning
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index b06ee8613e9..cd80c646a2d 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -3213,7 +3213,7 @@ void SmartScript::InitTimer(SmartScriptHolder& e)
void SmartScript::RecalcTimer(SmartScriptHolder& e, uint32 min, uint32 max)
{
// min/max was checked at loading!
- e.timer = urand(uint32(min), uint32(max));
+ e.timer = urand(min, max);
e.active = e.timer ? false : true;
}