summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorSuperUserNameMan <yoann@terminajones.com>2016-06-29 23:00:45 +0200
committerSuperUserNameMan <yoann@terminajones.com>2016-06-29 23:00:45 +0200
commit2511f48339ab9fa489cf31e7c985547ddb69ae4e (patch)
tree6dd95c725623308d5ca486542a6d01e75ccea167 /platform
parent72c2cccbe28d37890e3367c1488830693a225e69 (diff)
fixes #5464 windows_joystick close_joystick bug
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/joystick.cpp b/platform/windows/joystick.cpp
index 663bbe3b9b..e69bfe6a52 100644
--- a/platform/windows/joystick.cpp
+++ b/platform/windows/joystick.cpp
@@ -283,7 +283,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--;
}