diff --git a/dlls/util.cpp b/dlls/util.cpp index 6cfebc10..56819f44 100644 --- a/dlls/util.cpp +++ b/dlls/util.cpp @@ -2223,7 +2223,7 @@ int CRestore::ReadField( void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCou break; case FIELD_EHANDLE: // Input and Output sizes are different! - pOutputData = (char *)pOutputData + j * ( sizeof(EHANDLE) - gSizes[pTest->fieldType] ); + pInputData = (char*)pData + j * gSizes[pTest->fieldType]; entityIndex = *(int *)pInputData; pent = EntityFromIndex( entityIndex ); if( pent )