mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-10 15:59:58 +00:00
Small correction
Corrected some code in DLCSkinFile.cpp for getting the DLC skin offsets was getting too many parameters that don't exist.
This commit is contained in:
parent
69983c51ad
commit
e98c7a725b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue