From 3a03da20e69941111806e2e983c68a88629eb98b Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sat, 4 Jun 2022 13:40:23 +0200 Subject: [PATCH] fixed curly bracket initialization for json map (yields arrays!) --- 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 a2872d212..e32f87fac 100644 --- a/src/common/PJoystickHandler.hxx +++ b/src/common/PJoystickHandler.hxx @@ -50,7 +50,7 @@ class PhysicalJoystickHandler struct StickInfo { explicit StickInfo(nlohmann::json map, PhysicalJoystickPtr stick = nullptr) - : mapping{std::move(map)}, joy{std::move(stick)} {} + : mapping(map), joy{std::move(stick)} {} nlohmann::json mapping; PhysicalJoystickPtr joy;