mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00: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
cf57dcf23e
1 changed files with 1 additions and 1 deletions
|
@ -1278,6 +1278,6 @@ void keyboard_pad_handler::process()
|
|||
}
|
||||
|
||||
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…
Add table
Reference in a new issue