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
1 changed files with 1 additions and 1 deletions

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 )