fixes #5464 windows_joystick close_joystick bug

This commit is contained in:
SuperUserNameMan 2016-06-29 23:00:45 +02:00
parent 72c2cccbe2
commit 2511f48339
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ void joystick_windows::close_joystick(int id) {
d_joysticks[id].attached = false; d_joysticks[id].attached = false;
attached_joysticks[d_joysticks[id].id] = false; attached_joysticks[d_joysticks[id].id] = false;
d_joysticks[id].guid.Data1 = d_joysticks[id].guid.Data2 = d_joysticks[id].guid.Data3 = 0; d_joysticks[id].guid.Data1 = d_joysticks[id].guid.Data2 = d_joysticks[id].guid.Data3 = 0;
input->joy_connection_changed(id, false, ""); input->joy_connection_changed(d_joysticks[id].id, false, "");
joystick_count--; joystick_count--;
} }