1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +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:
Megamouse 2024-10-15 00:42:41 +02:00
parent f1f124dcbf
commit c882f0baf0

View File

@ -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.
}
}