2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 01:47:45 +01:00

Prevent crash on 64-bit archs.

This commit is contained in:
Andrey Akhmichin 2024-02-28 02:50:59 +05:00
parent cc0224cb87
commit 19f3e91978

View File

@ -2217,7 +2217,7 @@ int CRestore::ReadField( void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCou
break;
case FIELD_EHANDLE:
// Input and Output sizes are different!
pInputData = (char*)pData + j * gSizes[pTest->fieldType];
pInputData = (char*)pData + j * gInputSizes[pTest->fieldType];
entityIndex = *(int *)pInputData;
pent = EntityFromIndex( entityIndex );
if( pent )