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:
parent
cc0224cb87
commit
19f3e91978
@ -2217,7 +2217,7 @@ int CRestore::ReadField( void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCou
|
|||||||
break;
|
break;
|
||||||
case FIELD_EHANDLE:
|
case FIELD_EHANDLE:
|
||||||
// Input and Output sizes are different!
|
// Input and Output sizes are different!
|
||||||
pInputData = (char*)pData + j * gSizes[pTest->fieldType];
|
pInputData = (char*)pData + j * gInputSizes[pTest->fieldType];
|
||||||
entityIndex = *(int *)pInputData;
|
entityIndex = *(int *)pInputData;
|
||||||
pent = EntityFromIndex( entityIndex );
|
pent = EntityFromIndex( entityIndex );
|
||||||
if( pent )
|
if( pent )
|
||||||
|
Loading…
Reference in New Issue
Block a user