Merge branch 'master' into gravgun

This commit is contained in:
Andrey Akhmichin 2024-03-01 08:11:24 +05:00
commit 91224f692a
1 changed files with 1 additions and 1 deletions

View File

@ -2489,7 +2489,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 )