diff --git a/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp b/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp index bcd669ef..35271146 100644 --- a/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp +++ b/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp @@ -88,7 +88,7 @@ std::vector L2CapWiimote::get_devices() continue; } - outDevices.push_back(std::make_unique(sendFd, recvFd)); + outDevices.emplace_back(std::make_shared(sendFd, recvFd)); } return outDevices; }