diff --git a/UnitMethods.h b/UnitMethods.h index 7584723..086f395 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2182,7 +2182,9 @@ namespace LuaUnit float zSpeed = Eluna::CHECKVAL(L, 5); float maxHeight = Eluna::CHECKVAL(L, 6); uint32 id = Eluna::CHECKVAL(L, 7, 0); - unit->GetMotionMaster()->MoveJump(x, y, z, zSpeed, maxHeight, id); + + Position pos(x, y, z); + unit->GetMotionMaster()->MoveJump(pos, zSpeed, maxHeight, id); return 0; } #endif