From c03c6f2bdb6a4f236c22a916753d4aa9728085fa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 29 Nov 2015 12:34:05 +0100 Subject: api/joystick: oops, access the right 'joys' variable --- opentrack/win32-joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp index 0bd6bfda..a705adbc 100644 --- a/opentrack/win32-joystick.cpp +++ b/opentrack/win32-joystick.cpp @@ -232,7 +232,7 @@ win32_joy_ctx::enum_state::enum_state(std::unordered_mapjoys.begin(); it != this->joys.end(); ) { if (std::find_if(all.cbegin(), all.cend(), [&](const QString& guid2) -> bool { return it->second->guid == guid2; }) == all.cend()) it = joys.erase(it); -- cgit v1.2.3