summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-29 12:34:05 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-29 12:34:05 +0100
commitc03c6f2bdb6a4f236c22a916753d4aa9728085fa (patch)
treec0b0707abd8af4d9ec37844fd35d80cd74cd4963
parentedb0e01947f67142c00c3f75a62df7af708cdf11 (diff)
api/joystick: oops, access the right 'joys' variable
-rw-r--r--opentrack/win32-joystick.cpp2
1 files changed, 1 insertions, 1 deletions
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_map<QString, std::shared_pt
return;
}
- for (auto it = joys.begin(); it != joys.end(); )
+ for (auto it = this->joys.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);