From e98c7a725b7120eba1af95eb57d3b48ff0b6b4d5 Mon Sep 17 00:00:00 2001 From: Langtanium <94726057+Langtanium@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:14:10 -0700 Subject: [PATCH] Small correction Corrected some code in DLCSkinFile.cpp for getting the DLC skin offsets was getting too many parameters that don't exist. --- Minecraft.Client/Common/DLC/DLCSkinFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft.Client/Common/DLC/DLCSkinFile.cpp b/Minecraft.Client/Common/DLC/DLCSkinFile.cpp index ac0a86c76..3e36f36f6 100644 --- a/Minecraft.Client/Common/DLC/DLCSkinFile.cpp +++ b/Minecraft.Client/Common/DLC/DLCSkinFile.cpp @@ -230,15 +230,15 @@ void DLCSkinFile::addParameter(DLCManager::EDLCParameterType type, const wstring break; case DLCManager::e_DLCParamType_Offset: { - WCHAR wchBodyPart[4]; + WCHAR wchBodyPart[2]; SKIN_OFFSET *pSkinOffset = new SKIN_OFFSET; ZeroMemory(pSkinOffset,sizeof(SKIN_OFFSET)); #ifdef __PS3__ // 4J Stu - The Xbox version used swscanf_s which isn't available in GCC. - swscanf(value.c_str(), L"%10ls%f%f%f%f", wchBodyPart, + swscanf(value.c_str(), L"%10ls%f%f", wchBodyPart, #else - swscanf_s(value.c_str(), L"%9ls%f%f%f%f", wchBodyPart,4, + swscanf_s(value.c_str(), L"%9ls%f%f", wchBodyPart,2, #endif &pSkinOffset->fD, &pSkinOffset->fO);