From d4eb9535ef2de564ec7fbb97daeab3db1d16f511 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 21 Dec 2020 13:31:42 +0100 Subject: [PATCH] fixed broken joystick mapping loading --- src/common/PJoystickHandler.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/PJoystickHandler.hxx b/src/common/PJoystickHandler.hxx index 017479ceb..444ef1a6a 100644 --- a/src/common/PJoystickHandler.hxx +++ b/src/common/PJoystickHandler.hxx @@ -50,7 +50,7 @@ class PhysicalJoystickHandler struct StickInfo { StickInfo(const nlohmann::json& map = nullptr, PhysicalJoystickPtr stick = nullptr) - : mapping{map}, joy{std::move(stick)} { } + : mapping(map), joy{std::move(stick)} { } nlohmann::json mapping; PhysicalJoystickPtr joy;