From 08f789a313328b30a250d1aeddb24d7bfb922cd7 Mon Sep 17 00:00:00 2001 From: Joshua de Reeper Date: Mon, 7 Oct 2024 13:22:35 +0200 Subject: [PATCH] Simple assignment for figure data --- src/Cafe/OS/libs/nsyshid/Dimensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/OS/libs/nsyshid/Dimensions.cpp b/src/Cafe/OS/libs/nsyshid/Dimensions.cpp index 1150c1c7..788a80fb 100644 --- a/src/Cafe/OS/libs/nsyshid/Dimensions.cpp +++ b/src/Cafe/OS/libs/nsyshid/Dimensions.cpp @@ -619,7 +619,7 @@ namespace nsyshid figure.id = id; figure.pad = pad; figure.index = index + 1; - memcpy(figure.data.data(), buf.data(), buf.size()); + figure.data = buf; // When a figure is added to the toypad, respond to the game with the pad they were added to, their index, // the direction (0x00 in byte 6 for added) and their UID std::array figureChangeResponse = {0x56, 0x0b, figure.pad, 0x00, figure.index, 0x00, buf[0], buf[1], buf[2], buf[4], buf[5], buf[6], buf[7]};