2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-22 09:57:21 +01:00
This commit is contained in:
Night Owl 2017-07-17 10:15:17 +05:00
parent 6f8cd70328
commit 73a99df894

View File

@ -441,9 +441,16 @@ edict_t *EHANDLE::Get( void )
edict_t *EHANDLE::Set( edict_t *pent )
{
m_pent = pent;
if( pent )
m_serialnumber = m_pent->serialnumber;
if( pent )
{
m_pent = pent;
m_serialnumber = m_pent->serialnumber;
}
else
{
m_pent = NULL;
m_serialnumber = 0;
}
return pent;
}