mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-25 03:09:24 +01:00
Fix save game system not saving arrays of EHANDLEs if the first half of the array contains null handles.
Same as d5d96d3883
.
This commit is contained in:
parent
c7b141d67d
commit
f58544a156
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user