fix move and move-wide constructor
This commit is contained in:
parent
4755dd995d
commit
e950b77475
1 changed files with 2 additions and 2 deletions
|
|
@ -3747,7 +3747,7 @@ impl Move {
|
|||
}
|
||||
|
||||
#[new]
|
||||
pub fn new(from: u16, to: u16) -> Self {
|
||||
pub fn new(to: u16, from: u16) -> Self {
|
||||
Self { from, to }
|
||||
}
|
||||
|
||||
|
|
@ -3879,7 +3879,7 @@ impl MoveWide {
|
|||
}
|
||||
|
||||
#[new]
|
||||
pub fn new(from: u16, to: u16) -> Self {
|
||||
pub fn new(to: u16, from: u16) -> Self {
|
||||
Self { from, to }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue