mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
input: fix segfault caused by lockless std::move of stick vector
The copy assignment seems to fix this
This commit is contained in:
parent
f1f124dcbf
commit
c882f0baf0
@ -1278,6 +1278,6 @@ void keyboard_pad_handler::process()
|
|||||||
}
|
}
|
||||||
|
|
||||||
pad->m_buttons = pad_internal.m_buttons;
|
pad->m_buttons = pad_internal.m_buttons;
|
||||||
pad->m_sticks = std::move(squircled_sticks);
|
pad->m_sticks = squircled_sticks; // Don't use std::move here. We assign values lockless, so std::move can lead to segfaults.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user