From 15dbef7679783fe802c2ad63304847ba47bcae50 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Sep 2016 17:38:56 +0200 Subject: logic/shortcuts: fix "held" not initialized for joysticks Reported-by: @Sone989 Issue: #440 --- dinput/keybinding-worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dinput') diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp index 608f8fc1..5fbde31c 100644 --- a/dinput/keybinding-worker.cpp +++ b/dinput/keybinding-worker.cpp @@ -122,7 +122,7 @@ void KeybindingWorker::run() k.held = held; for (auto& r : receivers) - r->operator()(k); + (*r)(k); }; joy_ctx.poll(f); -- cgit v1.2.3