Core: Fix build

This commit is contained in:
Vincent_Michael
2013-02-03 01:12:07 +01:00
parent 847cafc121
commit 0f53f69e52
2 changed files with 3 additions and 3 deletions

View File

@@ -1900,8 +1900,8 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
for (ObjectList::const_iterator itr = targets->begin(); itr != targets->end(); ++itr)
if (Creature* creature = (*itr)->ToCreature())
{
(*itr)->ToCreature()->GetMotionMaster()->Clear();
(*itr)->ToCreature()->GetMotionMaster()->MoveJump(e.target.x, e.target.y, e.target.z, (float)e.action.jump.speedxy, (float)e.action.jump.speedz);
creature->GetMotionMaster()->Clear();
creature->GetMotionMaster()->MoveJump(e.target.x, e.target.y, e.target.z, (float)e.action.jump.speedxy, (float)e.action.jump.speedz);
}
// TODO: Resume path when reached jump location