From 8a615b27ad30af313882a57ea28fc8d979adfbc7 Mon Sep 17 00:00:00 2001 From: SuperUserNameMan Date: Wed, 29 Jun 2016 23:00:45 +0200 Subject: [PATCH] fixes #5464 windows_joystick close_joystick bug (cherry picked from commit 2511f48339ab9fa489cf31e7c985547ddb69ae4e) --- platform/windows/joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/joystick.cpp b/platform/windows/joystick.cpp index f8526b5ec12..707b7dc4fc7 100644 --- a/platform/windows/joystick.cpp +++ b/platform/windows/joystick.cpp @@ -281,7 +281,7 @@ void joystick_windows::close_joystick(int id) { d_joysticks[id].attached = false; attached_joysticks[d_joysticks[id].id] = false; 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--; }