aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Northrend
diff options
context:
space:
mode:
authorAzazel <azazel.kon@gmail.com>2011-07-29 15:25:52 +0600
committerAzazel <azazel.kon@gmail.com>2011-07-29 15:25:52 +0600
commitc5d0c6b4645ca0d41a5c1f81a35efc50f613f403 (patch)
tree1324c463b29e8df2c19488a9d5ec03338fb34684 /src/server/scripts/Northrend
parentcf643e51504e9cf1e6406b0781861e78f70374e0 (diff)
Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings.
Diffstat (limited to 'src/server/scripts/Northrend')
-rw-r--r--src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp b/src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp
index 4e0c50972ff..4b2776b688f 100644
--- a/src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp
+++ b/src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp
@@ -712,8 +712,8 @@ class boss_stormcaller_brundir : public CreatureScript
case EVENT_MOVE_POSITION:
if (me->IsWithinMeleeRange(me->getVictim()))
{
- float x = irand(-25, 25);
- float y = irand(-25, 25);
+ float x = float(irand(-25, 25));
+ float y = float(irand(-25, 25));
me->GetMotionMaster()->MovePoint(0, me->GetPositionX() + x, me->GetPositionY() + y, FLOOR_Z);
// Prevention to go outside the room or into the walls
if (Creature* trigger = me->FindNearestCreature(NPC_WORLD_TRIGGER, 100.0f, true))