Skip to content

Commit

Permalink
Revert "Fix save game system not saving arrays of EHANDLEs if the fir…
Browse files Browse the repository at this point in the history
…st half of the array contains null handles."

This reverts commit f58544a.
  • Loading branch information
a1batross committed Aug 15, 2024
1 parent 57b8307 commit 2226a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
pOutputData = (char *)pOutputData + j * ( sizeof(EHANDLE) - gSizes[pTest->fieldType] );
entityIndex = *(int *)pInputData;
pent = EntityFromIndex( entityIndex );
if( pent )
Expand Down

0 comments on commit 2226a85

Please sign in to comment.