From c5d0c6b4645ca0d41a5c1f81a35efc50f613f403 Mon Sep 17 00:00:00 2001 From: Azazel Date: Fri, 29 Jul 2011 15:25:52 +0600 Subject: Core/Misc: cleanup npc_professions script (shouldn't the whole script go to DB?). Fix some warnings. --- src/server/scripts/Northrend/Ulduar/ulduar/boss_assembly_of_iron.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Northrend') 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)) -- cgit v1.2.3