SDL_hidapi_switch.c (ConstructSubcommand): lose use of '&' on rumbleData

SwitchCommonOutputPacket_t->rumbleData is an array.
This commit is contained in:
Ozkan Sezer 2021-11-13 17:56:28 +03:00
parent 6ad0fb8462
commit a2c27d39cf
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ static void ConstructSubcommand(SDL_DriverSwitch_Context *ctx, ESwitchSubcommand
outPacket->commonData.ucPacketType = k_eSwitchOutputReportIDs_RumbleAndSubcommand;
outPacket->commonData.ucPacketNumber = ctx->m_nCommandNumber;
SDL_memcpy(&outPacket->commonData.rumbleData, &ctx->m_RumblePacket.rumbleData, sizeof(ctx->m_RumblePacket.rumbleData));
SDL_memcpy(outPacket->commonData.rumbleData, ctx->m_RumblePacket.rumbleData, sizeof(ctx->m_RumblePacket.rumbleData));
outPacket->ucSubcommandID = ucCommandID;
SDL_memcpy(outPacket->rgucSubcommandData, pBuf, ucLen);