Fix segfault when connecting multiple controllers at the same ttime

This commit is contained in:
loki
2021-09-13 20:24:04 +02:00
parent fbc3735f44
commit 91a6e55f74
3 changed files with 4 additions and 4 deletions

View File

@@ -326,7 +326,7 @@ void keyboard(input_t &input, uint16_t modcode, bool release) {
send_input(i);
}
int alloc_gamepad(input_t &input, int nr, rumble_queue_t &&rumble_queue) {
int alloc_gamepad(input_t &input, int nr, rumble_queue_t rumble_queue) {
if(!input) {
return 0;
}